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 (44884,44531,45561,45043,44853,18279,17009,44762,44775,44848,18650,16935,14402,44863,45051,44674,44858,45421,34194,44865,17835,45177,44768,3883,18286,17114,45262,44866,45180,36472,44687,44878,18572,45072,18996,18301,19078,45346,17351,5388,3,44870,5259,6862,44685,44766,17904,24412,24438,17092,17839,16885,44671,17703,14622,24411,44836,13425,44873,44855,18446,44711,18648,4765,39676,37267,44764,45518,18430,44861)
Unknown column 'np.person' in 'where clause'