Fields may be empty, so you must check for the existence of a field by using the php isset() function.
Returns a mixed array with the query result entries, optionally limited to a maximum of max_rows rows. Note that both row and column indexes are zero-based.