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