Database error: Invalid SQL: select * from product where product_id in ('23','25') and `status`='sale' and (start_time='real' or '2020-04-08 19:14:53'>=product.start_time) and (case when product.end_time = 'stock_zero' then (select sum(s.stock) from product_spec s where (s.product_id=product.product_id) ) > 0 else '2020-04-08 19:14:53'<=product.end_time end) order by rand() limit 0,4
Mysql error: 1030 (Got error 28 from storage engine)
SQL: select * from product where product_id in ('23','25') and `status`='sale' and (start_time='real' or '2020-04-08 19:14:53'>=product.start_time) and (case when product.end_time = 'stock_zero' then (select sum(s.stock) from product_spec s where (s.product_id=product.product_id) ) > 0 else '2020-04-08 19:14:53'<=product.end_time end) order by rand() limit 0,4
Session halted.