The following select statement queries two tables, returns the results from both, and sorts them so that those records with notes associated with them are displayed first.
$query = "SELECT Table1.id
, Table1.LastName
, Table1.FirstName
, Table1.Phone1
, Table1.city1
, Table1.city2
, Table1.city3
, Table1.phone1
, Table1.phone2
, Table1.phone3
, Table1.lastname
, COALESCE(Table2.Note, '') AS Note
FROM Table1
LEFT JOIN Table2 ON (Table2.id = Table1.id)
WHERE (Table1.city1 LIKE ('$cy%') OR Table1.city2 LIKE ('$cy%') OR Table1.city3 LIKE ('$cy%'))
ORDER BY Note DESC, Table1.lastname DESC";
What I'd like to be able to do, is to print those records with notes in bold, while keeping those without notes non-bold. Is that possible? Anyone know how to do it?