title: How to connect to database and get custom data in Phorum?
body: <p>I am using the external authentication system. Therefore, there are a lot of user data, which is not available in Phorum.</p>
  
  <p>I am using the last post module, although I want to get the information from the last post user, from my own user table (I have some data, like avatar, birth info etc). I want to show in my Phorum. How can I achieve this?</p>
  
  <p>I've tried to simply connect via a: <code>mysql_query();</code> but then I just get <code>No database selected error.</code></p>
  
  <p>I've searched for hours - I cannot find any documentation regarding getting custom data from your own user table.</p>