Cannot connect to database : Subquery returns more than 1 row : SELECT `id` FROM `sa_products` WHERE (status <> 'disabled') AND ((SELECT discount_price FROM sa_product_price WHERE product_id = sa_products.id) > 1) AND (1)