SQL Error found in query: SELECT 1 FROM v_buy_sell where `l_id`= and owner_type='buy' and status=1
Error Message: 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_type='buy' and status=1' at line 1