fixed problem with pdo::select on delete

@daniel-burke noticed an error while using a self written plugin for tags and faq. This occured in MySQL but not in sqlite. 
I searched for the error and found this solution ...