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,44856,13,44851,18172,17657,13425,45229,36472,44863,5993,44685,44869,44767,17335,44671,5410,44849,45518,45517,45072,18279,18237,30963,17092,6609,17904,44745,19078,45177,6782,44867,4765,37267,44894,45043,45421,44768,8753,18900,18185,17771,18286,5388,24441,44766,44878,19057,45051,17351,44835,17009,18427,44884,17556,44765,22509,44531,44855,18688,45180,45042,17601,18652,6875,10402,18650,44845,14402,18042)
Unknown column 'np.person' in 'where clause'