You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND status='active' LIMIT 1' at line 1
SELECT * FROM brands WHERE id = AND status='active'
line 686 of lib/dmllib.php: call to debugging()
line 481 of lib/dmllib.php: call to get_recordset_sql()
line 43 of ooter_products.php: call to get_record_sql()