Unable to query local database 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 'order by products.product_id limit 0,1' at line 1
SELECT products.id FROM products,products_to_subtype,products_subtype where products_to_subtype.video_id=products.id and products_to_subtype.subtype_id=products_subtype.id and products_subtype.id=104 and products.id> order by products.product_id limit 0,1