fixed problem with pdo::select on delete

@daniel-burke noticed an error while using a self written plugin for tags and faq. So i searched for the error and found this solution ...