Query yerine prepare kullan gelen post get verileri güzelce temizle bir fonksiyon ile hepsini temizleyerek alırsan sorun olmaz.