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='2018bdc81c96e26c6d410b6545d39faa'' at line 1