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 (16935,44851,3883,44765,18301,45277,13,32454,44836,10402,44766,4765,45051,3,44867,17839,45515,17351,17756,44739,18286,43800,44865,17771,18719,44685,18894,28313,22509,18430,14622,31354,8753,9341,30963,18652,44848,24441,44873,17237,18572,17492,44640,18688,5388,44869,17335,44837,44884,44868,45567,45229,6875,17904,45517,44764,44866,6782,13425,19057,44863,18237,18427,17981,45072,30986,5993,17835,44845,45262)
Unknown column 'np.person' in 'where clause'