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 (9341,18894,5993,44669,5410,6609,37057,30135,18572,13425,44848,17009,44837,44870,18286,18301,44687,24441,18237,17335,45277,17755,44775,45421,44765,44856,16885,45043,17703,4765,44766,8753,16935,44873,18446,17351,24438,44685,45567,17092,44640,44861,34194,19057,44531,28530,4686,24412,44884,44745,17756,18042,17601,44835,44674,17657,18719,45042,18185,30963,18172,17527,45346,44853,17981,45518,45177,45262,44875,19078)
Unknown column 'np.person' in 'where clause'