Thanks, I'm doing something wrong:
"SELECT columnname WHERE 'columnname' = 'testcolumncategory' LIMIT $from, $max_results") or die(mysql_error());
The whole code works fine without added
WHERE 'columnname' = 'testcolumncategory'
but as soon as I add the extra it doesn't like it. I'm not listing the whole code yet in case you can easily see something wrong with this basic set up. All I did was take something from my other code:
$query = "SELECT columnname FROM table WHERE id = '208'";
and changed it to accomodate the columns instead but it doesn't like it.