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 (5388,44875,17981,24441,45346,24411,44836,17092,45516,17335,18996,13,18237,18301,4686,24438,16935,18652,14622,44640,45180,17755,44711,17351,44685,37057,37267,18427,24412,44873,44835,18172,18286,45177,31354,18900,13425,9341,45517,17278,44766,44669,44768,44687,6782,45515,43800,18446,44775,6875,30986,44894,17756,44866,17848,44858,17556,44869,45286,45043,44868,34194,5259,44861,36472,3883,44674,44870,44853,17835)
Unknown column 'np.person' in 'where clause'