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 (18688,17703,45515,44711,5993,45286,24438,14402,18648,44865,22509,44685,4765,39676,44878,18572,44884,44739,18650,6862,6875,32454,44870,5388,44762,45180,18652,44873,44766,45043,17114,18301,44863,44851,44775,44640,44671,30986,8753,44867,5259,17848,28313,44689,18279,45517,30135,17556,44861,4686,45277,17335,17092,5410,37057,17009,37267,45518,44836,17601,18172,44767,17492,17278,18286,18042,24441,6782,44869,3883)
Unknown column 'np.person' in 'where clause'