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