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 (44870,18042,44836,45518,17755,37057,17839,18301,18650,34194,44685,44689,18894,17981,44878,44866,6782,18286,18279,44531,45177,18237,44853,18353,24412,22509,36472,45346,45262,44739,44745,17092,13922,45515,9341,19057,18719,44858,44894,17278,18794,44674,44851,45567,44687,44835,28530,18172,10402,18648,28313,18427,5993,4765,17703,5388,44873,44849,24441,44848,45421,13988,16935,45286,17492,45277,17527,17835,44884,45561)
Unknown column 'np.person' in 'where clause'