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