SELECT DISTINCT collections_id FROM products JOIN prodscategs ON prodscategs.products_id = products.id AND categories_id=

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 '' at line 4
#0 /home/abbydresses/public_html/modules/Newarrivals/Newarrivals.php(155): DataBase->query('SELECT DISTINCT...')
#1 /home/abbydresses/public_html/templates/backnwhite/newarrivals_backnwhite.inc(71): Newarrivals->loadPage(0, true, false, true, 2)
#2 /home/abbydresses/public_html/dispatcher.php(424): include_once('/home/abbydress...')
#3 {main}