You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND basketSession='40f2570f87368765da3f5e6c0fa57a2c'' at line 1