DB Error: syntax error:SELECT COUNT(*) AS order_count, goods_code, goods_name, price, comment, keyword, SUM(price_tax) + SUM(system_price_tax) AS price_tax_all, SUM(order_details_count) AS order_details_count, SUM(quantity) AS quantity FROM "order" INNER JOIN (SELECT order_id, goods_code, goods_name, goods_name_show, price, comment, keyword, COUNT(*) AS order_details_count, SUM(price_tax * quantity) AS price_tax, SUM(system_price_tax * quantity) AS system_price_tax, SUM(quantity) AS quantity FROM order_delivery INNER JOIN order_details ON order_delivery.order_delivery_id = order_details.order_delivery_id INNER JOIN goods ON order_details.goods_id = goods.goods_id WHERE goods.price != '0' AND goods.no_image_flg = '0' AND goods.status_flg = '0' AND goods.giftnavi_flg = '0' AND goods.catalog_flg = '0' AND NOW() BETWEEN goods.start_date AND goods.end_date GROUP BY order_id, goods_code, goods_name, price, comment, goods_name_show, keyword) AS order_delivery ON "order".order_id = order_delivery.order_id WHERE status_flg IN (0, 20) AND "order".site = '1' AND TO_CHAR("order".add_date, 'YYYY-MM-DD') >= '2024-10-02' AND "order".add_date <= NOW() AND ((goods_name like '%パウンド%' AND keyword like '%出産%') OR (keyword like '%パウンド%' AND keyword like '%出産%')) AND 1 = 1 GROUP BY goods_code, goods_name, price, comment, keyword ORDER BY COUNT(*) DESC OFFSET 0 LIMIT 1:FILE=/home/web/www.giftnavi.jp/htdocs/shussan/sweet.php:LINE=148