Erro! # 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND flag_status=1 ORDER BY posicao ASC' at line 1 SELECT * FROM tbgalerias_fotos WHERE id_galeria= AND flag_status=1 ORDER BY posicao ASC; |