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 (18279,17839,44685,44836,28313,44868,6862,17009,45072,19078,44671,45346,17601,18353,5259,45517,44856,14622,4686,44739,45177,19057,34194,18237,9341,45515,18652,45042,17904,18996,24411,44867,17657,44853,5388,13922,44674,24438,45421,45043,30986,17848,13,17981,30963,44765,17351,44711,44861,44863,28530,44878,14402,17755,30135,17527,3883,13425,44849,45051,44870,22509,16935,44762,3,18427,17771,17756,18688,44855)
Unknown column 'np.person' in 'where clause'