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='269dae8b97c88f9f381b76422216bf02'' at line 1