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 (18185,30986,6862,18430,45262,14622,44767,17335,13922,18652,22509,18572,17009,45346,16885,5388,36472,44762,17601,18279,45518,13988,6609,37267,17835,28313,16935,44856,44894,17848,10402,17703,18353,18648,44870,30963,44765,44861,44873,44669,44768,44745,17756,44711,44739,18237,17904,18894,44858,44685,44671,5259,18688,44875,45043,18900,17351,45180,9341,28530,44531,24441,4765,3883,30135,17981,44869,44764,19078,44640)
Unknown column 'np.person' in 'where clause'