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