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