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