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 (9341,19078,14402,18981,45516,44851,44837,6862,44873,44854,44849,39676,19057,17092,45229,28530,45567,32454,44764,18794,18185,17601,18042,30135,6875,44687,44894,24411,5993,17527,18688,13425,44711,45262,44853,18900,17278,31354,14622,45072,18427,16935,44835,17009,45346,5259,44856,44768,44765,18172,13,17771,44869,18572,18719,45042,18446,44767,44674,5388,44867,44858,30963,44884,44685,4765,36472,34194,22509,6782)
Unknown column 'np.person' in 'where clause'