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 (45567,18185,18650,17556,36472,44765,44849,45072,6875,45421,18427,14622,30135,14402,44866,44674,45262,18172,17335,28313,45180,31354,44845,17839,44640,44856,44873,44836,18900,17657,18996,44870,18981,44531,44875,18430,44768,18652,34194,44863,24441,44861,18794,18688,45516,17092,44851,6862,6609,3,30963,44868,44867,17981,44853,16885,45042,44855,16935,17237,5410,44894,44837,44848,18572,44685,22509,44687,4686,45051)
Unknown column 'np.person' in 'where clause'