Php Sql Conditional Statement Cannot Fetch First Row

Php Sql Conditional Statement Cannot Fetch First Row