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 (18719,31354,30135,18172,6862,5410,44851,45567,5388,37057,44855,17492,30986,45072,18900,18650,45042,45421,17351,4765,18237,6782,18430,13922,44767,44689,18286,16885,18652,36472,44870,14622,44848,17009,17335,28313,45277,6875,13988,5993,44775,18427,45286,18301,9341,17839,44836,44711,45516,14402,17756,45518,3883,18042,44854,22509,44894,17703,24438,13,17835,17981,10402,45051,43800,8753,44745,44685,18794,17657)
Unknown column 'np.person' in 'where clause'