title: MAX(FIELD)+1 - if null
body: <p>For one of my inserts I have the following: (PDO / MySQL)</p>
  
  <p><code>$this-&gt;sql = "INSERT INTO tblfixedfare SELECT NULL, MAX(FixedFareID)+1, '1', '$fieldDay' FROM tblfixedfare UNION SELECT NULL, MAX(FixedFareID)+1, '2', '$fieldNight' FROM tblfixedfare"</code></p>
  
  <p>Which works fine if the database is not empty. How would I go about setting <code>MAX(FixedFareID) == 1</code> if the table is empty? </p>