title: SQL First() Function
body: <p>I am using phpMyAdmin to write some SQL code that I thought was simple but proving to be a headache. I'm using <a href="http://www.w3schools.com/sql/sql_func_first.asp" rel="nofollow noreferrer">this</a> tutorial to help me out. My goal is to get the first and last columns id's from a result set. When I do this query I get 5 rows starting at 15 and going through 11.</p>
  
  <pre><code>SELECT id
  FROM boardPost
  WHERE recipientId = 1
  ORDER BY id DESC
  LIMIT 0,5
  </code></pre>
  
  <p>However, when I try this query I get an error #1064: "You have an error in your SQL syntax."</p>
  
  <pre><code>SELECT FIRST(id)
  FROM boardPost
  WHERE recipientId = 1
  ORDER BY id DESC
  LIMIT 0,5
  </code></pre>