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 (18427,13,44762,44767,44878,4765,4686,45042,45277,13425,17601,18650,44835,18794,18042,44845,13988,18981,17839,13922,44854,17237,18446,44858,24441,18353,18688,44764,44687,45561,44863,39676,17981,19078,44685,17835,44674,44856,10402,44869,44745,17092,45043,44873,6782,24411,45421,44851,28530,44866,44766,9341,44640,18430,44865,44711,44884,18652,17756,22509,44775,34194,24412,6875,44875,44739,5993,31354,17904,24438)
Unknown column 'np.person' in 'where clause'