mysql> SELECT s.title FROM user u, style s WHERE u.userid = 1 AND s.styleid = u.styleid; +------------+ | title | +------------+ | Default vB | +------------+ 1 row in set (0.26 sec)