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 (44689,45346,44745,44671,5993,45421,45515,44866,45518,17601,44765,17848,24411,44768,30963,44870,17092,45180,14402,17755,44861,44687,18652,45177,6609,44640,45042,17009,18446,13425,6782,17657,13,44875,18650,44849,45516,44685,44894,18572,30986,44856,3,24441,44531,13988,44775,17335,17835,6862,45286,8753,44767,17981,44854,17771,4765,45043,9341,17237,45567,44858,17278,44863,10402,18427,18996,31354,22509,13922)
Unknown column 'np.person' in 'where clause'