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 (45051,24411,18688,6782,45516,4686,17335,44866,17981,5410,6862,17351,28530,44849,16935,18572,44711,4765,44739,3,44669,34194,17848,44837,18996,44875,45072,44671,18353,44854,45177,14622,17601,44869,45518,45229,44878,45180,44689,5259,44870,45567,16885,18042,44836,45517,18900,18237,24438,45515,45421,17771,19078,32454,17278,13988,44884,8753,18650,44767,13,37057,24412,9341,44768,44856,44765,44762,18652,18430)
Unknown column 'np.person' in 'where clause'