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 (17092,45286,13425,44861,14402,44768,24412,44867,44863,45043,3,44775,17904,3883,44875,44870,18572,45180,9341,44674,30135,5388,18172,44865,18353,44836,44669,44878,44873,45262,17278,18794,37057,18446,17237,45051,17335,44689,18427,45346,39676,17771,45072,44884,18185,17848,44858,24411,24441,44869,45561,5410,5993,30986,44531,22509,45518,18719,44640,17492,44851,45177,17835,30963,18648,44745,45567,13922,17009,44866)
Unknown column 'np.person' in 'where clause'