There is an error on the SQL command.SQL:SELECT * FROM fbz_fotos WHERE imovel=33390 ORDER BY principal DESC, id asc LIMIT 0,1Error:MySQL server has gone away