select a.*, d.pic as activity_pro_icon_pic, c.company, e.name as brand_name FROM mb_products a left join mb_defind_7 b on a.id=b.info_id and b.info_type='product' left join mb_shop c on a.userid=c.userid left join mb_activity_pro_icon d on a.activity_pro_icon=d.id and d.is_show=1 and d.start_time<='1571088043' and d.end_time>='1571088043' left join mb_brand e on a.brand=e.id WHERE c.shop_statu=1 and a.statu>0 and a.from_module='product' and LOCATE('10000202',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 6