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 (17114,17237,30963,17556,17009,44767,44768,18652,44739,44766,18286,44765,17527,17848,37267,13425,18648,45286,45515,16885,16935,30986,18446,17351,45043,44711,32454,44531,14622,44762,3,45229,17839,18427,17703,17092,30135,18688,36472,5388,44865,44671,18172,44866,17771,28530,9341,18650,18981,44878,8753,44687,44863,18237,44689,45277,44775,44884,44849,18900,17492,18185,18894,43800,45042,44856,4686,45518,45421,44870)
Unknown column 'np.person' in 'where clause'