DATABASE ERROR:

SELECT id, pubdate, imageurl as file, hits, title
                            FROM cms_user_photos
                            WHERE user_id = '11' AND album_id = '11' AND (
                                    allow_who='all'
                                    OR
                                    (allow_who='registered' AND (0>0))
                                    OR
                                    (allow_who='friends' AND (0=1))
                                )
                            ORDER BY id DESC

Out of resources when opening file './twistik_ridder/cms_user_photos.MYD' (Errcode: 24 - Too many open files)