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 (18650,30963,18042,17601,3883,6782,44674,17703,5993,44853,44745,43800,6862,44884,18185,9341,24438,37267,17657,34194,44671,6609,17492,45177,36472,44685,18301,16885,44531,17835,45516,13425,4765,5410,17771,17755,18572,18981,17009,44767,45286,45421,44894,31354,17904,8753,6875,45561,44669,44854,18237,24441,18652,44765,13922,44855,44768,44869,45277,44835,17556,44865,45042,45262,45517,17278,44762,44873,17527,44845)
Unknown column 'np.person' in 'where clause'