Error Number: 1064You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')) = 0 OR shipping_id IN (SELECT shipping_id FROM flox_orders_shippings_to_...' at line 25SELECT DISTINCT LNG.code as lang_code, SL.name as store_location_name, SL.text as store_location_text, SL.city as store_location_city, SL.street as store_location_street, SL.image as store_location_image, SL.image2 as store_location_image2, SL.image3 as store_location_image3, SL.lat as store_location_lat, SL.lng as store_location_lng, flox_orders_shippings.* FROM (flox_orders_shippings) LEFT OUTER JOIN (SELECT id, code FROM flox_languages) as LNG ON flox_orders_shippings.language_id = LNG.id LEFT OUTER JOIN flox_orders_shippings_store_locations SL ON flox_orders_shippings.store_location_id = SL.store_location_id WHERE ( price_from IS NULL OR price_from = '0' OR price_from = '' OR price_from <= '7.5' ) AND ( price_to IS NULL OR price_to = '0' OR price_to = '' OR price_to >= '7.5' ) AND ( weight_from IS NULL OR weight_from = '0' OR weight_from = '' OR weight_from <= '0' ) AND ( weight_to IS NULL OR weight_to = '0' OR weight_to = '' OR weight_to >= '0' ) AND ( package_weight_from IS NULL OR package_weight_from = '0' OR package_weight_from = '' OR package_weight_from <= '0' ) AND ( package_weight_to IS NULL OR package_weight_to = '0' OR package_weight_to = '' OR package_weight_to >= '0' ) AND ( length_from IS NULL OR length_from = '0' OR length_from = '' OR length_from <= '0' ) AND ( length_to IS NULL OR length_to = '0' OR length_to = '' OR length_to >= '0' ) AND ( width_from IS NULL OR width_from = '0' OR width_from = '' OR width_from <= '0' ) AND ( width_to IS NULL OR width_to = '0' OR width_to = '' OR width_to >= '0' ) AND ( height_from IS NULL OR height_from = '0' OR height_from = '' OR height_from <= '0' ) AND ( height_to IS NULL OR height_to = '0' OR height_to = '' OR height_to >= '0' ) AND ( sum_dimensions_from IS NULL OR sum_dimensions_from = '0' OR sum_dimensions_from = '' OR sum_dimensions_from <= '0' ) AND ( sum_dimensions_to IS NULL OR sum_dimensions_to = '0' OR sum_dimensions_to = '' OR sum_dimensions_to >= '0' ) AND ( items_from IS NULL OR items_from = '0' OR items_from = '' OR items_from <= '1' ) AND ( items_to IS NULL OR items_to = '0' OR items_to = '' OR items_to >= '1' ) AND ( packages_from IS NULL OR packages_from = '0' OR packages_from = '' OR packages_from <= '0' ) AND ( packages_to IS NULL OR packages_to = '0' OR packages_to = '' OR packages_to >= '0' ) AND `language_id` = '1' AND (shipping_id NOT IN (SELECT shipping_id FROM flox_orders_shippings_to_groups WHERE permission = 'allow')) AND ( (SELECT count(shipping_id) FROM flox_orders_shippings_to_categories WHERE shipping_id > 0 AND category_id IN ()) = 0 OR shipping_id IN (SELECT shipping_id FROM flox_orders_shippings_to_categories WHERE shipping_id > 0 AND category_id IN () GROUP BY shipping_id HAVING count(category_id) = (SELECT count( distinct category_id) FROM flox_orders_shippings_to_categories WHERE category_id IN ()))) AND `offerable` >= '2' ORDER BY flox_orders_shippings.position