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='4ad1907e0055f4ec16a617c4c155481f'' at line 1