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 (36472,44861,17756,45346,17848,45043,44689,45262,45229,30963,18237,13922,18996,17237,19057,44766,43800,4765,8753,5993,17278,45567,34194,45515,45286,18688,30986,44875,18172,37057,18446,18648,18572,18650,44848,16885,45277,6609,17351,44837,44767,6862,44868,17835,18719,44674,44873,44878,17492,45421,18185,17771,44711,44687,17601,28313,18900,44764,44835,13988,18279,37267,13425,24441,44866,14622,44869,18301,44685,3883)
Unknown column 'np.person' in 'where clause'