Error: Cannot bind an empty value to a key.413

Error: SQLSTATE[42000]: Syntax error or access violation: 1064 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 ':user_id AND type = :type AND in_portfolio = :in_portfolio AND efty_market = ' at line 2
Line 221 of file /var/www/includes/classes/domains.class.php