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