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