Change ‘post_modify’ with a query

Thanks @Marin Atanasov and @hobo to help me to solve my problem on stackoverflow. If you are interested you can check the solution here

The problem was in the way i wrote the query, because it needs quotes around the date (eg = '".$data_modifica_post."').