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