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 (34194,44875,45346,18719,4765,44868,14622,17835,17114,31354,18688,17839,17492,30963,19078,17351,18648,17904,39676,8753,28530,17009,30135,18172,6782,44762,44865,17335,45561,44869,44674,17756,44766,18572,45286,37267,44745,13425,45262,44884,18794,44861,17527,44640,6875,5259,17278,19057,32454,45043,18279,44867,17092,13,45518,44531,18237,44765,44856,44863,18650,44671,45421,24441,45072,45515,44858,45180,10402,3)
Unknown column 'np.person' in 'where clause'