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 (17755,17839,17009,45515,44845,44855,17278,44848,17904,8753,5388,5993,18900,18286,18172,17556,17351,44867,6782,44868,45518,3,45517,18688,34194,13922,18894,44865,44837,24438,44764,44836,9341,24441,44739,45561,14402,18981,45051,30986,45421,22509,44894,6862,18996,16885,32454,19057,44869,45180,17657,5410,6875,18650,17114,44854,24412,14622,17335,13,37267,10402,18794,44640,44884,39676,44835,44765,13425,18648)
Unknown column 'np.person' in 'where clause'