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,18688,34194,45262,17703,13988,17527,24412,16935,24438,44836,44894,45346,17601,44870,5259,28313,44531,44866,45515,17009,13922,45043,17839,18172,6875,17092,44674,44875,44861,44855,18185,44745,17351,19057,44669,28530,45567,8753,44768,45229,44858,6782,44835,9341,44837,17755,45277,18279,17835,45421,45051,18894,44853,17756,44851,18042,17657,44766,17771,43800,30135,44640,14402,6609,44765,44873,45072,45517,44739)
Unknown column 'np.person' in 'where clause'