use buildSQLSelect in Mysql.php

one of the biggest problem of my point of you is
the use of high character in database field(colname, table name etc)
never do it!
delete debugging, correct static call
Fix SQL Syntax errors
Double Single quote error
fix SQL syntax error
Programm "works"

Ingnor Lock/unlock qry I doesn't understand the sins behind