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