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 (17492,6875,44855,45043,17351,30986,18652,19057,44873,44767,44878,44739,17556,44851,17335,13,44853,44764,44640,17981,16885,45346,3,37057,44849,13922,32454,44745,44669,44894,45518,17703,28313,45177,4765,17839,18996,44856,6862,44868,18279,44854,44835,45561,24411,44875,24441,18430,17009,17835,44863,44768,44674,45517,18719,14402,34194,45515,36472,9341,18286,44766,30135,44836,24438,17527,31354,30963,17657,5388)
Unknown column 'np.person' in 'where clause'