1064: 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 the_id <= AND (nr_1 = 1 OR nr_2 = 1 OR nr_3 = 1 OR nr_4 = 1 OR nr_5 = 1)' at line 1