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 (45043,44765,18172,45286,44836,44837,18719,17835,18279,18652,44689,45421,44870,37057,31354,37267,44868,18185,44894,44687,44849,44878,44866,3,4765,18794,44671,17009,16935,44640,44858,44775,18353,36472,17771,17556,18237,18572,17092,10402,45517,18894,17839,5388,44865,17756,18042,44768,45277,24441,44685,6875,18650,18301,13425,24438,30135,45346,17755,14622,6782,45177,44861,28530,18430,44711,17601,13988,18688,17527)
Unknown column 'np.person' in 'where clause'