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 (44873,17092,17756,18301,44531,17771,45229,44674,17009,18286,18185,44745,5388,17351,17839,13922,17335,17703,17114,44855,18237,44863,17556,6782,19057,17848,17981,44685,44870,30963,44837,45286,44671,34194,18042,6609,44687,17657,30986,18981,44866,30135,44856,18794,17835,45277,37057,3,18430,44867,24411,44835,24438,44845,18652,19078,18996,24412,17278,44878,44689,44853,9341,44767,45561,45515,45043,18427,10402,44854)
Unknown column 'np.person' in 'where clause'