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