Freelancer:
draugoz
Fix
You should add index on you MySQL table. Information is in PHP comment. Also changed SELECT statement and added error checking