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 (45177,13425,32454,44640,45042,14402,17904,39676,17492,45180,18652,6862,44851,44875,17114,45517,13988,3,44849,44669,44865,44531,17092,18996,18042,44674,22509,44766,30135,18172,24438,17601,5410,18794,44858,18430,44689,18900,44845,45421,44835,19078,16885,44853,44854,17527,18427,8753,17755,16935,45277,44856,45286,44873,45051,44861,17756,17278,44687,18237,44868,45229,45516,24441,3883,18688,18301,17848,5259,17009)
Unknown column 'np.person' in 'where clause'