php - 在 URL 检测到:/未捕获的异常:错误:子查询返回超过 1 行错误编号:1242
问题描述
主页是空的。
Detected at URL: /
Uncaught Exception: Error: Subquery returns more than 1 row
Error No: 1242
SELECT DISTINCT *, pd.name AS name, p.image, m.name AS manufacturer, (SELECT price
FROM oc_product_discount pd2 WHERE pd2.product_id = p.product_id AND
pd2.customer_group_id = '1' AND pd2.quantity = '1' AND ((pd2.date_start = '0000-00-00'
OR pd2.date_start < NOW()) AND (pd2.date_end = '0000-00-00' OR pd2.date_end >
NOW())) ORDER BY pd2.priority ASC, pd2.price ASC LIMIT 1) AS discount, (SELECT
`keyword` FROM oc_seo_url WHERE `query` = CONCAT('product_id=', p.product_id) AND
language_id='1' AND store_id='0' LIMIT 1) as xseo, (SELECT GROUP_CONCAT(fdx.name)
filter_name FROM oc_product_filter pfx INNER JOIN oc_filter fx ON fx.filter_id =
pfx.filter_id INNER JOIN oc_filter_description fdx ON fdx.filter_id = pfx.filter_id
AND fdx.language_id=1 AND fdx.filter_group_id=1 WHERE pfx.product_id = p.product_id
GROUP BY pfx.product_id) product_filters, (SELECT price FROM oc_product_special ps
WHERE ps.product_id = p.product_id AND ps.custo in system/library/db/mysqli.php:81
解决方案
推荐阅读
- css - Safari浏览器上的css变换+宽度+左+顶部过渡跳转
- android - ChildEventListener 导致 IndexOutOfBoundsException
- shiny - 在“折叠”状态下以闪亮的方式启动 widgetUserBox
- r - 如何使用一个测量为 0-7 的变量和另一个具有两个类别的变量进行卡方检验?
- sql - SQLite 多表列信息传输
- php - 选择框名称值的问题 - 可以隐藏它吗?
- node.js - node.js + nodemon、babel 和 dotenv
- amazon-web-services - 为什么我的失败事件没有发送到 AWS Dead Letter Queue DLQ?
- python - 针对特定用例的 Python 线程与异步
- plc - 如何为电机中的控制器状态创建时序?