Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (37267,44765,44745,5993,17009,37057,18981,5410,44868,39676,44863,18652,31354,28530,45262,44854,44671,18688,44764,18648,4686,13922,8753,18650,18794,17756,10402,44531,44739,44866,17335,44768,17981,45515,18719,44674,18900,18279,17092,18572,5388,3,18430,18427,6862,18172,17527,18042,45042,17351,45229,44848,16935,45421,17492,43800,44873,19078,18894,44685,44849,24411,44711,36472,17237,44669,24412,34194,17601,45518)
Unknown column 'np.person' in 'where clause'