Invalid query:
Error Number: 1064
Error Message: 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 '' at line 1
Whole query: SELECT * FROM tbl_product_downloads WHERE active=1 AND downloadid =