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