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 (44884,17755,45561,44851,44766,44689,44870,24412,18042,44894,16885,5410,44875,18650,31354,45043,44869,13425,18185,18900,44669,45072,17848,44531,37057,44861,44863,17351,30986,18688,17009,18981,13922,44745,18427,44873,18572,44845,17771,17556,17335,17092,3,45421,36472,44855,44837,24438,10402,17114,45567,18301,44853,17278,18794,17756,30963,44848,44865,44687,37267,18996,45516,43800,17904,45286,18286,45262,45515,17601)
Unknown column 'np.person' in 'where clause'