shakty/Patterns — comment on commit 5cbab66bf342607fad58165937d7b09758ddd69b
File:  line 0
By csko:

I still don't see the syntax errors fixed, even though you committed a couple times since then.

In your SQL queries, you should escape the apostrophes, that's definitely a syntax error. You actually don't need apostrophes there and you are not creating an SQL query properly anyway. See some documentation:
http://api.drupal.org/api/drupal/includes--database--database.inc/function/db_select/7
http://api.drupal.org/api/drupal/includes--database--database.inc/group/database/7
http://drupal.org/node/310075

Chances are, that's why you see a blank page. Check where your PHP logs errors (php.ini). I'd recommend you print every error (E_ALL) on the screen.