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 (44531,44687,5993,18301,44855,37267,13,18652,18794,45517,45043,44849,3883,44768,18042,44835,45262,44865,19057,16885,44867,17527,18353,45229,44894,3,17755,17351,17556,44640,18900,18279,44685,31354,18172,44837,44745,44866,45051,17835,36472,45518,44858,44853,44765,28313,30135,19078,44711,44878,37057,4765,18430,44854,44766,44873,24441,44861,6782,10402,44845,45516,18648,18719,44870,16935,9341,18894,44671,17703)
Unknown column 'np.person' in 'where clause'