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,44767,45286,16885,17848,17527,18996,18894,44685,17278,44861,24438,44765,6862,17755,44766,8753,45042,17771,18794,44870,44854,44863,17756,44674,44894,17835,18650,17601,18430,6875,5993,24441,4686,44711,17981,16935,45043,18042,9341,37057,18652,45346,44875,32454,17092,17335,18719,17009,45072,44869,18172,17703,44866,45517,43800,44768,24412,13922,18900,44856,44855,44531,28313,45262,18353,13425,18446,31354,18301)
Unknown column 'np.person' in 'where clause'