Having scoured these boards I can't seem to find a response which gives me the solution to the error I'm seeing with the below statement - I believe I have the order of this correct but am likely missing something simple, I want to display only rows with an entry in 'postcode' and order the columns by the 'sort_order' parameter - see code below...
if ($result = mysqli_query($conn,'SELECT * FROM temptable
where postcode<>''
ORDER BY ' . $column . ' ' . $sort_order)) {