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 (44836,17839,17756,18430,24438,45561,5993,18427,18894,45346,13922,5410,34194,44764,44640,28313,18794,17351,44865,44869,6862,44739,14622,17009,45517,4686,17114,18353,37057,17771,18279,44768,44745,44766,45262,32454,18446,44767,44531,44870,44848,8753,44861,6875,44762,45518,18286,18900,18719,44669,44866,14402,17904,45051,10402,5388,44863,44858,17527,18185,13425,24412,44711,6782,45515,17492,6609,18996,17848,45177)
Unknown column 'np.person' in 'where clause'