Filter posts under multiple categories?

WordPress does this automatically if you do

http://yoursite.com/?cat=1+2 (where 1 and 2 is category ids)

OR

http://yoursite.com/?category_name=apples+oranges (where apples and oranges is the slugs)

OR something like

http://yoursite.com/category/apples+oranges

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)