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 (18688,44689,44848,44762,17839,5388,44674,39676,44870,44875,44868,18042,3,24441,3883,17771,19057,9341,45286,14622,45229,44869,17527,44865,6609,45516,24438,17835,17009,44884,13,44849,6782,18900,44640,44836,16885,18237,44866,22509,17092,18981,44765,18172,19078,17756,43800,45277,45262,44687,45051,37267,45517,18286,5993,44851,18301,44837,17278,32454,31354,44768,45177,44685,45518,17703,45043,44775,18427,18996)
Unknown column 'np.person' in 'where clause'