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