SELECT * FROM arrangements WHERE active = 1 AND arrangement_id = ORDER BY There's something wrong with the QueryYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1