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 (44858,44671,14402,9341,44837,24438,18981,24441,45518,17237,18172,45051,17009,36472,45516,44765,44869,44878,18279,18185,19078,18648,44861,5993,5410,17848,44531,44764,18237,18652,44851,44689,18900,45515,6875,13988,17657,34194,44849,44865,18301,6782,4765,44640,5259,17278,17755,17556,44767,18572,14622,44870,45042,45277,45072,18353,30135,44768,3,45043,30963,17092,44868,44835,18427,17601,44853,3883,44855,17527)
Unknown column 'np.person' in 'where clause'