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