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 (44873,44689,44868,18572,18042,5410,28313,3,44768,44762,17278,44853,6862,44875,44671,44739,39676,44854,18981,44848,44869,17755,24411,44866,18446,5259,5388,44870,17756,14622,18353,18794,18172,17657,16885,45177,37267,44865,6609,44531,44640,17237,44849,44884,19078,43800,44867,4686,44767,44687,44764,28530,14402,44765,24438,44861,45051,17335,36472,8753,44858,17009,18648,44855,32454,45516,18279,45561,37057,18996)
Unknown column 'np.person' in 'where clause'