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 (44855,45346,43800,44861,37057,17556,18279,18894,45051,18430,44765,45229,44863,36472,34194,44687,3,5410,44775,14402,8753,30963,44762,18996,17114,24412,45177,17904,4765,17237,17835,17771,18652,9341,19078,45042,17703,18981,44853,17492,13988,18353,45180,44835,44671,30135,44767,44711,44849,44837,45043,44865,5388,37267,17601,18172,17657,45421,44836,44848,24441,18572,24411,45561,18719,44869,18237,44669,13922,17839)
Unknown column 'np.person' in 'where clause'