The mysql database returned an error while processing your request.

The SQL statement was: SELECT IF(LENGTH(brand_banner)>0,CONCAT(''),'') FROM promotions WHERE NOW() BETWEEN start AND end AND brand=  LIMIT 1;

The database returned this: 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 '  LIMIT 1' at line 1

Other info: