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