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