change the query
Changing to mysqli to pdo bd connection