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 (10402,18688,17351,45177,45421,19078,39676,17839,28530,18042,18981,44873,17904,45229,30963,44866,13,18172,18650,13425,44775,45180,44836,17009,44739,5993,18719,18900,44856,4686,45517,44884,44531,3,5259,44855,44851,17848,18894,45561,45515,16935,44762,45072,18185,44863,24441,18996,13988,34194,22509,18286,24438,5388,24412,18794,18648,44858,44869,44868,44845,44768,17771,45346,14402,44764,44687,44875,17657,6875)
Unknown column 'np.person' in 'where clause'