MySQL ERROR

Error Number: 1064

Description: 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 `owner_id`= and TABI=-1 and category_id=-1 LIMIT 1' at line 1

Query: SELECT * FROM `l_accounts_owners_nicknames` WHERE `account_id`= and `owner_id`= and TABI=-1 and category_id=-1 LIMIT 1