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 (44766,18900,19078,30986,44873,44767,44866,18446,45042,18894,9341,45072,28530,37267,13988,30135,18572,5410,5388,17278,44765,24438,18301,18719,18172,3883,44775,18185,45180,17556,44764,44855,17904,45262,18650,45421,17351,22509,14402,18648,44863,24412,18353,44869,44867,19057,16935,17756,45051,17009,36472,45286,44669,13425,44845,24441,18237,4765,18688,45277,5259,18279,44884,17835,30963,6782,44858,44685,44674,44894)
Unknown column 'np.person' in 'where clause'