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 (45421,3,17114,17755,17601,4686,36472,18237,44884,44671,19078,30986,6782,18981,13425,3883,44767,44685,44689,19057,45286,6862,17237,17278,13988,45516,17904,17981,10402,17335,44836,44854,44687,22509,44848,18900,34194,24441,44768,17492,44868,43800,17092,37267,44861,18648,44873,18719,17009,45567,45177,44865,44837,45262,18794,45051,17839,5388,18650,5259,18688,44739,8753,18446,37057,44855,44762,18353,18652,45042)
Unknown column 'np.person' in 'where clause'