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 (17755,6862,17335,5388,18286,18172,45561,44848,44865,44863,44671,28530,45567,17657,16935,44868,44854,18427,44765,45177,28313,17351,17527,18996,37267,17981,43800,18719,17848,17009,44640,30986,3,44837,13,44866,18688,44745,18648,45180,44711,18900,32454,5410,44762,8753,44851,44775,17771,14622,44836,18794,17601,44849,22509,45051,45229,17092,24411,18446,30135,18301,45277,16885,44861,18981,17904,44870,18279,44873)
Unknown column 'np.person' in 'where clause'