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 (44861,17755,19078,5388,14402,3883,3,44687,18353,44854,10402,17848,39676,24441,45346,18996,44868,44867,30135,45516,24438,44845,18981,44848,44849,18794,17904,45515,44856,45277,18900,45177,45561,24412,17601,6609,18572,18430,32454,44855,17839,30963,44869,17556,28530,13922,13,44875,17092,17756,44671,44863,18279,44853,28313,45517,45229,17278,44767,5410,17657,44711,17771,18042,8753,9341,45421,18427,18172,44765)
Unknown column 'np.person' in 'where clause'