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 (18185,5410,44873,16885,18446,44869,43800,45518,16935,13425,45051,45177,13922,17556,45042,17237,45515,8753,45180,44835,4765,18688,45346,44851,24412,9341,44766,17755,17114,18648,45561,18042,44863,28313,44858,18650,44689,44764,17839,44865,44853,44856,18894,18981,44875,44849,30135,45262,18996,5388,19057,44848,44878,18794,44745,45229,17351,17009,6862,24438,45517,44768,44868,3883,17278,18427,34194,18353,18172,17835)
Unknown column 'np.person' in 'where clause'