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 (17904,18981,44848,17492,8753,17092,13,24441,44867,44765,45567,44873,44711,45177,17114,18996,44851,17835,5388,44835,18042,31354,18286,24411,45421,18794,45072,44845,5410,5259,45262,45516,44766,18650,6609,30963,45042,17756,45561,30135,45286,44884,17703,45180,18353,44775,45518,44861,44863,18446,17839,17278,44739,44687,44870,44853,17009,22509,39676,43800,18237,44837,13425,44856,44531,37267,24412,44875,18430,3)
Unknown column 'np.person' in 'where clause'