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 (5388,18719,45177,17351,18353,17492,17556,6862,24441,45516,5993,37057,18286,44775,44745,44766,13922,44856,44689,17756,45229,18996,31354,10402,32454,18430,18446,18042,44866,36472,45180,17755,28313,44855,37267,18688,45346,34194,30135,44531,30986,17009,17839,18894,44836,44870,18279,44863,44669,45286,45277,44849,18900,44868,6609,14622,17237,18652,18301,45517,18794,45515,44768,44674,16885,44851,45042,44848,13988,6782)
Unknown column 'np.person' in 'where clause'