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 (17335,24438,44669,18572,19078,13425,18042,18286,10402,14402,17114,17527,28530,45180,44835,44869,17278,17703,18648,17835,44875,44671,45421,9341,44711,18353,3,44674,18688,45262,19057,45561,17009,36472,24412,44640,44884,45229,44765,44873,17756,13988,44531,45516,44768,18430,18279,17601,44767,45072,44863,43800,18446,18301,6875,17657,17904,18172,44866,44836,18981,44851,44853,44861,17839,44865,44870,28313,16935,22509)
Unknown column 'np.person' in 'where clause'