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 (5410,5388,18446,18981,3,4765,18279,13922,30986,18794,22509,13,16935,14622,17839,34194,45517,17556,18900,44845,45515,24438,17904,44671,17756,45051,18353,17703,17114,44868,6862,44863,19057,17981,45567,45561,45286,44669,44884,45421,17351,17848,45516,44689,44848,44873,45229,19078,44867,44835,13988,39676,17092,18237,44745,8753,17237,18652,17009,45180,32454,45042,17278,44765,28313,45262,28530,44764,6875,18648)
Unknown column 'np.person' in 'where clause'