QUERY Error
Query string SELECT * FROM photos WHERE phtref= AND phtmaster=1 ORDER BY phtid
Error > 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 phtmaster=1 ORDER BY phtid' at line 1