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 (45277,18719,44689,44854,34194,45516,17904,45518,5259,17278,5388,16935,44855,36472,18648,45567,6782,8753,18894,18427,28313,5410,3883,44711,18794,17771,44685,44845,45051,22509,44745,18042,44837,32454,18446,6862,44868,44870,45180,44767,17009,44866,18650,44865,44878,28530,44669,44875,30986,44853,4686,24441,45072,9341,44858,14622,31354,44856,18996,17839,44765,44764,44671,45561,37267,17835,44884,44867,24438,17237)
Unknown column 'np.person' in 'where clause'