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 (44835,19078,44870,44765,8753,44869,17278,13988,18996,18279,13425,44775,45561,5259,45042,18900,44868,45516,17351,18353,18688,22509,17114,45072,18719,44867,5410,17657,44689,5388,44685,18042,17492,45346,45517,17601,45043,45421,18286,44866,39676,16935,17756,44861,18427,10402,13922,32454,6862,28313,17527,14402,45515,17904,24411,14622,44837,5993,17703,43800,44848,44768,17839,44531,17556,45229,4686,17092,44764,17335)
Unknown column 'np.person' in 'where clause'