Error: 1054
Unknown column 'userid' in 'where clause'
SELECT COUNT(*) FROM miphoto_videos WHERE userid='5819' AND approved='1'