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 (28313,16935,13988,17556,18650,44531,44669,18572,44878,44884,30986,4686,44858,45229,44762,17657,45515,18981,44739,44766,10402,18648,30963,44868,36472,17527,45043,44845,44671,18794,6609,44851,17601,45346,18900,17839,18652,44674,39676,44685,44687,44837,14402,17092,34194,18446,37267,18688,44835,5410,45421,45180,8753,44865,44861,17114,19078,18427,13425,45517,45177,44768,18279,17848,44853,28530,44863,6875,4765,44745)
Unknown column 'np.person' in 'where clause'