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 (44767,44745,18286,6875,44764,44858,44869,44836,17527,13,18427,44875,18981,5410,44868,13988,17092,24411,44768,18446,44835,5259,44856,45277,18185,44848,30986,45042,13922,24412,44861,44711,10402,44766,44640,45051,5388,45072,17756,17657,37267,17848,17237,14402,18353,17114,18894,30963,44669,17771,18719,44855,24441,18996,19078,44866,17601,37057,44762,45177,44851,18648,17009,44870,44867,45421,13425,17835,8753,28530)
Unknown column 'np.person' in 'where clause'