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 (30963,24441,44851,44853,18572,24412,43800,44870,18648,32454,18430,44854,5388,18042,44894,10402,37267,44848,44868,19078,8753,18279,45567,18172,44764,44775,17492,44836,28313,18996,18794,6782,44855,44671,44765,34194,45277,18427,5410,44745,44858,44669,18688,44884,45346,45043,18900,14622,28530,44875,45515,9341,17527,44863,18301,17237,18237,18894,44685,30135,17556,44845,5259,18719,18981,13,45051,18446,44768,13988)
Unknown column 'np.person' in 'where clause'