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 (45515,5388,18650,6782,36472,34194,6875,17904,45042,13988,3,19057,17703,44861,16885,18172,44640,45072,24438,44711,44687,18446,37267,24441,45346,44853,18981,5993,17771,18648,44848,13425,44739,17278,18572,45567,44531,4765,44685,44765,18719,17351,18237,30963,44745,17527,13,17981,44764,37057,13922,44873,45051,18430,44855,18652,18353,30135,45180,44856,44836,9341,18185,17601,44866,32454,18279,44766,44875,17492)
Unknown column 'np.person' in 'where clause'