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 (6875,19057,44867,3,18286,45567,37267,45177,44865,9341,44870,17756,44866,45229,45516,18172,44689,22509,31354,17492,45346,18353,13922,45515,45043,18237,17527,44853,18301,44875,45421,17755,17904,16885,44858,18572,34194,45561,17335,44894,45286,44687,4765,18900,18430,44835,44745,18185,17835,30986,44855,44764,6609,44531,44848,17703,8753,44762,13988,18652,18648,44849,44856,44711,18042,18279,24441,28530,5388,17839)
Unknown column 'np.person' in 'where clause'