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 (18900,18430,10402,6875,44767,44765,18427,45561,18996,18894,14402,45229,18572,18981,44851,44711,44848,44867,44845,5993,44865,45286,17009,17703,6862,17527,45518,18648,43800,44855,36472,17114,9341,18237,3,4686,17835,45346,44873,45043,17657,44863,44640,45277,18688,44739,18279,45567,17278,34194,44894,45262,44858,44878,37267,45421,18652,44875,19078,17601,32454,13,45516,30963,17237,13988,44685,44745,17092,17771)
Unknown column 'np.person' in 'where clause'