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 (44870,18427,44867,3883,18042,4765,18794,37057,17657,16885,18996,17601,44868,10402,30135,44851,45567,18286,45229,16935,13988,44775,13,45277,44836,18279,44685,13425,17835,44835,18237,44745,32454,17351,17335,18648,45180,19078,17009,45051,9341,44869,17981,24441,44848,44861,18353,37267,30986,17237,28313,34194,14622,17556,17492,5993,45518,45262,6862,44894,45421,17771,5388,44766,44711,44858,17756,45072,44765,8753)
Unknown column 'np.person' in 'where clause'