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 (18894,44775,30963,17756,44764,32454,45421,44835,44837,18353,44689,45516,44851,44739,44531,9341,36472,44870,44671,44849,17601,44865,17556,18650,8753,44856,17237,18237,45277,18996,37267,44762,44854,17839,6862,18572,17009,16935,45051,30135,19078,45517,28530,44861,44687,18446,30986,44866,45177,18286,45567,45286,44685,18172,10402,44855,45229,44768,18719,44873,22509,44766,5993,44878,14402,18648,13,17114,44858,44765)
Unknown column 'np.person' in 'where clause'