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 (45561,18172,45229,45277,18286,36472,44669,13,17237,37057,45518,45043,44845,3,44870,13922,17351,44745,17527,17009,37267,32454,13988,44866,17839,17335,44765,14402,17556,5388,45262,16935,14622,30963,44674,45177,18794,44849,18446,44689,19078,30986,44855,17771,45286,45072,44869,44836,18042,44685,18652,17835,45346,45180,17114,44739,3883,10402,44766,18430,44711,4686,17904,17756,18894,19057,24411,18688,4765,18301)
Unknown column 'np.person' in 'where clause'