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='509a3d607a7a83ecfa4e30ac0473981d'' at line 1