You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and rank>='0' and edate>='2020-08-10' and open_poster='1' order b' at line 2