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 (44884,45517,5388,17703,45051,44861,44866,44739,19057,14622,13,45421,17755,44853,45346,45042,44867,9341,45286,44873,17756,18996,32454,17335,17237,17009,44685,6862,5259,44669,4686,3883,14402,44856,44689,45177,39676,19078,6609,17527,30135,18185,17492,44894,44865,45277,16935,30963,18894,44858,24411,44764,44855,17981,18648,18688,17278,45229,45072,45515,16885,45518,17835,13922,5410,24412,6875,44837,44870,44878)
Unknown column 'np.person' in 'where clause'