select a.*, b.pic as activity_pro_icon_pic, c.company, d.name as brand_name FROM mb_products a left join mb_activity_pro_icon b on a.activity_pro_icon=b.id and b.is_show=1 and b.start_time<='1582859905' and b.end_time>='1582859905' left join mb_shop c on a.userid=c.userid left join mb_brand d on a.brand=d.id WHERE c.shop_statu=1 and a.statu>0 and a.from_module='product' and LOCATE('1011',a.catid)=1 order by a.rank desc, a.brand asc, a.amount desc, a.uptime desc limit -104,52You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-104,52' at line 5