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 (5993,30963,9341,17114,45042,17601,13,44854,3,6782,44861,17835,13988,44873,44866,18286,18996,17657,28313,44765,24411,18688,45421,45277,17335,44878,45561,18652,13922,44640,17237,44848,44674,24412,8753,17009,44855,16885,5388,44837,45516,44851,44867,6875,45517,18237,43800,45515,14622,17981,45567,17492,44845,18353,18430,17755,45177,24438,44894,44764,24441,44853,18794,17092,37267,44870,37057,18894,44745,18427)
Unknown column 'np.person' in 'where clause'