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