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