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 (45177,44767,37267,5388,44894,44858,44870,18996,44711,44884,45515,30135,28530,18650,18301,18430,45072,44745,13425,17601,8753,44764,24441,18648,44878,18042,44671,3883,19078,17755,24412,44687,5410,45518,44531,13922,18427,44674,17703,13,17771,17527,6609,45286,45421,45042,44855,4765,6875,14402,45229,30963,44768,17335,18237,18894,4686,44873,32454,5259,36472,14622,44865,17278,45180,44851,45051,10402,44765,28313)
Unknown column 'np.person' in 'where clause'