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 (44848,44856,45421,18042,14622,44767,44766,36472,17492,18353,5259,18794,13922,18650,17839,37267,45262,17278,44854,13425,18648,44869,3,4765,45518,10402,45515,45516,44745,18900,45567,44845,17657,17904,18652,31354,5410,45043,44640,17981,44858,44866,17092,44768,44711,44861,24438,44836,44669,17771,44837,3883,44884,28313,32454,44863,5388,18894,45177,14402,18185,16935,30986,37057,13,45277,19078,44764,44849,44873)
Unknown column 'np.person' in 'where clause'