Created first successfull sql with WHERE clause on a custom attribute
Fixed mysql WHERE clauses
Fixed constructor argument