Unknown column 'public' in 'where clause': SELECT * FROM reservas WHERE propiedad_fk = public and session_id = "scrvt2g3b0i5e3p59bi7dca2b7"