All pastes #746460 Raw Edit

Mine

public text v1 · immutable
·published 2007-10-23 05:59 UTC
rendered paste body
$sql = "SELECT t1.* FROM my_business AS t1
		LEFT JOIN my_category AS t2
			ON (t1.id = t2.primary_category)
			OR (t1.id = t2.secondary_category) 
				WHERE t2.uri_node = $cat
					ORDER BY name $sort LIMIT $offset, $limit";