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='54e0e957f4c586404c1d726fc3e30ad9'' at line 1