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 (16885,44861,17703,28313,44878,44775,45180,45516,14402,44865,18650,24438,18446,17756,45561,14622,44854,19057,44866,44685,22509,44837,32454,18572,44836,17335,24441,6862,9341,28530,17904,44640,17839,17527,17092,45177,45421,18427,17278,44868,44745,45346,31354,44853,44739,18279,44867,13988,18286,5993,18185,45515,5388,17771,34194,44687,45072,6782,18794,30986,18894,45042,44845,18353,8753,13922,44856,18719,44869,44870)
Unknown column 'np.person' in 'where clause'