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 (24412,30135,45229,44685,34194,45072,17755,44894,45262,18353,45180,14402,18648,13922,36472,19078,18237,6875,18172,17114,17492,45567,18996,44861,18430,44835,37057,17771,45515,5993,17848,17351,45051,44745,24441,18894,44711,17335,45517,44531,18427,44848,44768,17703,44764,44765,10402,17981,17657,44674,44856,18301,17904,44687,18286,17556,5388,18650,17527,18794,6609,18900,18652,44837,18042,17839,44762,44640,13,18572)
Unknown column 'np.person' in 'where clause'