I am trying to get favorite post ids from my table with get_col, but the results return ids as string instead of int. How can i get them directly as int ?
$sql = "SELECT post_id FROM {$table} $where
GROUP BY post_id
ORDER BY post_type
LIMIT $offset, $count";
$wpdb->get_col( $sql );
$number = (int)$wpdb->get_col( $sql );