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 (18279,18900,32454,44884,9341,17835,44869,44768,30135,45286,31354,44685,44854,18719,45043,45567,44640,45177,5259,44848,4686,5993,17237,44689,16935,44858,8753,17492,44765,18353,17092,44866,44531,18652,18185,18996,45518,17839,45517,10402,45229,44855,18427,30986,44762,13922,44853,18688,16885,17351,17755,17981,24412,18794,44894,44863,44745,44836,13988,17278,4765,18301,14402,18572,45421,17756,22509,37267,19057,18237)
Unknown column 'np.person' in 'where clause'