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 (44849,45286,44531,44835,44894,44711,44884,13,44764,44866,45229,18042,44861,45421,44848,17755,9341,4765,44858,44854,6782,44768,44640,24441,18688,45567,44745,44689,17981,5259,19057,18650,30963,44767,18237,18446,18286,45043,44739,44687,45277,17351,17237,36472,13425,17756,18894,44868,44671,44878,3883,18430,44870,10402,18172,44845,44837,18185,44669,14402,18301,18279,17492,44856,16935,18572,45072,24438,44875,45262)
Unknown column 'np.person' in 'where clause'