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