few things:

  • while you may be new, good job putting your code in bbcode tags!
  • mc has a point... are you sure you created the table? what happens if you put the following statement into phpMyadmin:
    Code:
    select format_id, format_name from media_format order by format_name
  • that is what php is complaining about in the error log.
  • line numbers are what the line numbers are. you have either modified the script since the time of the error log, or you are referencing the wrong script, or you have inaccurately quoted the error log. i have never seen an error log be wrong about where the error is.