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 (45262,13988,18172,44851,34194,32454,18688,18894,45516,17981,18652,44837,44640,37267,4686,45518,44855,17114,45567,6875,44835,44764,17756,45177,44873,45043,45229,24438,44766,5993,44861,17657,44531,18650,44884,30135,44868,44845,17335,10402,18042,17904,8753,44866,44765,45180,6862,30986,14622,13922,5259,44711,44865,17009,37057,45421,45517,44863,3,17848,17492,45561,17835,17839,44869,19078,18279,28530,24441,22509)
Unknown column 'np.person' in 'where clause'