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 (43800,37057,44884,18279,9341,18446,6862,6782,45421,45042,44878,44762,45561,18996,24438,17601,30963,45286,45051,44854,24412,18688,44868,32454,16885,45262,18237,17981,45516,44858,17237,44875,44837,13922,44640,17527,18430,44765,18652,37267,44870,5259,18719,13425,44531,17839,17835,17556,17756,18172,18900,13988,6609,44745,44869,44866,24411,17771,5388,28313,45515,44835,18427,44669,17092,44845,31354,6875,44851,17657)
Unknown column 'np.person' in 'where clause'