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