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 (45567,45051,18794,3,19078,44775,45346,32454,44739,37057,44687,44689,6609,44767,44836,4686,17835,44849,44851,5259,45277,18652,19057,18648,18430,44870,16885,44845,13,9341,18900,13922,13988,17657,44766,44861,44837,3883,44858,45421,18286,44866,44745,37267,17351,45072,18719,4765,17601,31354,17237,44848,17839,45262,45229,44856,44855,30963,44762,18427,45042,44768,44711,18894,18185,44640,17492,18996,45286,34194)
Unknown column 'np.person' in 'where clause'