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 (18446,45180,45042,44669,24411,44851,44861,18301,44869,44867,44531,17556,18688,14622,6609,17657,44848,44711,44858,44837,44875,45567,18894,44768,45517,44866,18652,45516,24441,44765,16885,45421,18172,44873,45277,37057,44849,44767,31354,44894,17114,18650,18185,18430,18286,32454,8753,4765,44671,17756,45051,18648,44775,5388,6875,44845,14402,30135,44863,17092,37267,17835,44745,17527,44878,45043,30986,45346,18279,17351)
Unknown column 'np.person' in 'where clause'