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 (44861,44685,44865,45516,34194,44640,17771,44845,6875,3,37057,44837,10402,17237,44762,44867,17114,18719,44848,13988,37267,45043,44869,45421,5410,44745,8753,28530,30986,18446,16935,24441,45567,17755,19078,17703,17009,44764,45517,36472,18237,24438,44873,45286,18572,44671,44884,44689,39676,18900,18279,45561,24411,44866,17657,45042,32454,44768,45051,18286,18996,44863,45346,6862,17848,18981,45177,4686,18894,5993)
Unknown column 'np.person' in 'where clause'