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 (39676,44835,45421,31354,18353,44671,45515,17839,8753,19057,17601,16935,28313,37267,6782,44669,17848,44531,44873,4686,5993,6862,14622,45516,17771,45043,13,44768,18430,5388,44867,18652,18894,17114,45072,44869,17335,44767,18446,18688,43800,44865,44851,5259,17527,17835,44685,44856,45561,45518,44689,10402,6875,44674,44762,44764,44711,44866,18279,44739,44745,22509,24441,45262,45051,18286,18185,45277,17092,37057)
Unknown column 'np.person' in 'where clause'