bug 1058: refixing big SQL query escaping with "'" in account/55