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 (39676,44851,17657,45072,24441,18353,18652,44894,44767,30986,45180,19078,17839,44869,17009,9341,44854,45516,17848,18650,18446,18572,44671,44775,18185,17237,44858,6862,44870,44531,44884,13,17835,34194,45051,44867,45229,44835,18900,44855,44837,30963,44739,45515,45567,32454,10402,44689,45421,44687,14622,5993,30135,44768,18301,28313,17556,44853,17703,5388,4686,44866,45286,16935,44873,44865,45043,45517,44745,31354)
Unknown column 'np.person' in 'where clause'