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,44848,17771,4686,30963,45421,17657,18353,5993,18185,3883,18648,44868,10402,17092,34194,44878,18430,6875,17114,45515,19057,44863,44870,44851,8753,44775,18652,45072,44745,44858,44884,32454,44856,39676,45051,44853,16935,17755,44836,45180,44766,18042,17527,22509,45043,44835,3,44687,14402,24412,44849,44837,5388,17981,44873,17601,44531,28530,44685,17492,18794,18427,37267,19078,44689,18719,17237,45286,45277)
Unknown column 'np.person' in 'where clause'