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 (45262,10402,44764,44765,13988,24441,44766,5410,18650,44873,44775,17351,44861,44869,18172,44745,31354,34194,45286,44739,4686,16935,44848,18652,18794,22509,18279,37057,30135,17756,6875,5993,18719,17527,45516,18900,17335,44851,45051,44711,45177,45042,44868,17092,36472,13922,17601,13,45518,17839,16885,45346,18353,17848,44858,18981,17981,5388,6862,17492,18301,14622,3883,28530,6782,18894,44853,44531,32454,19057)
Unknown column 'np.person' in 'where clause'