Caught exception: SELECT SQL_CALC_FOUND_ROWS * FROM brand_type2 INNER JOIN brand2 ON brand_type_brand_id = brand2_id INNER JOIN mobile2 ON mobile_brand_type_id = brand_type2_id LEFT JOIN brand_type_image2 ON brand_type_image_brandtype_id = brand_type2_id WHERE brand_type_added <= '2026-10-18 23:00:00' AND brand_type_phone_type = 3 ANd (brand_type_price_device!=0 OR brand_type_secondhand!=0) GROUP BY mobile_brand_type_id ORDER BY brand_type_totalrating DESC LIMIT 40