- $result = SQL_QUERY_ESC("SELECT status, sex, surname, family FROM "._MYSQL_PREFIX."_user_data WHERE userid=%d LIMIT 1",
- array($url_uid), __FILE__, __LINE__);
- if (SQL_NUMROWS($result) == 1)
- {
- list($status, $sex, $sname, $fname) = SQL_FETCHROW($result);
+ $result = SQL_QUERY_ESC("SELECT status, gender, surname, family FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
+ array($url_uid), __FILE__, __LINE__);
+ if (SQL_NUMROWS($result) == 1) {
+ list($status, $gender, $sname, $fname) = SQL_FETCHROW($result);