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 (17771,44884,44858,18900,37267,44894,44671,45516,44687,10402,13425,18981,44764,17756,32454,14622,44867,17335,18652,45229,44870,5993,18172,45042,45346,17848,44848,22509,18648,44765,14402,45421,44689,39676,17351,18996,6782,44878,43800,18042,19078,28313,3883,13922,24411,44845,44853,44851,44855,9341,18794,16885,28530,44767,18286,17092,17237,17492,13,45561,18688,36472,44762,44835,18446,44869,44711,16935,45515,5388)
Unknown column 'np.person' in 'where clause'