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 (17839,45177,16885,30986,4686,18996,18688,44674,17556,44766,44853,13988,45180,44849,18279,18237,13922,6782,3883,44768,32454,44689,37267,44640,17755,44745,17601,9341,39676,14622,18652,44837,24438,30135,18286,17835,44868,5410,44894,17756,17848,45229,44685,44863,18301,6862,18648,18650,16935,18427,44855,22509,44870,3,44884,36472,18794,44835,44669,5993,44869,45262,44845,44851,17527,17771,44764,17237,18172,31354)
Unknown column 'np.person' in 'where clause'