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 (17527,17114,44875,44865,17703,45286,18900,17601,18652,44762,17848,18427,45072,4686,17237,18996,44711,6782,45262,30963,13,18237,44836,17278,44854,45516,18688,18794,45561,37057,18572,18648,18446,18650,44766,36472,5388,6875,44868,44851,44531,13425,44849,44671,45277,16935,45042,44867,17092,45517,44739,28313,37267,22509,13922,44687,44745,6862,45346,44765,45515,17009,18042,44869,44845,34194,28530,19057,18981,10402)
Unknown column 'np.person' in 'where clause'