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 (45277,17835,18301,17092,44878,44835,18172,18427,31354,13,44894,17839,44884,18650,24438,17755,18446,44687,17657,30135,44640,18652,14402,13425,19078,39676,44865,17904,17492,44851,4765,44867,44671,45051,16935,3883,44768,44853,17237,44689,6782,44845,17351,44875,5388,28313,18794,18185,28530,17601,45346,10402,44685,5410,45180,44674,45229,44868,17756,5993,3,18900,45516,45286,44869,44775,44837,44711,45517,18719)
Unknown column 'np.person' in 'where clause'