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