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 (30135,22509,16885,5410,36472,18650,17657,13,19057,45277,37267,44870,28530,18572,44745,44849,44878,18353,37057,18172,44863,45177,32454,44764,44848,3,17492,45421,28313,24438,13988,13425,8753,44854,44867,44765,9341,18719,31354,44845,17848,44853,39676,5993,6782,18794,17335,5259,14622,44894,44855,5388,18981,10402,45072,18648,44674,44837,45043,18185,45561,44873,45517,17237,44856,17527,17703,45516,13922,44685)
Unknown column 'np.person' in 'where clause'