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