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 (17351,14622,18042,45043,6609,44868,18427,17092,18894,4765,17278,45277,17009,30986,18430,44674,18301,44875,18279,17335,44849,45286,5410,45229,36472,17703,44865,44848,18353,45262,8753,44685,13922,44861,18650,45421,24412,18648,28530,44866,24438,18286,9341,44836,32454,18794,18719,5259,44858,17527,16885,5993,18688,44531,44853,5388,44845,44671,45516,44739,17771,44669,45051,13,44766,45042,17755,17835,28313,44711)
Unknown column 'np.person' in 'where clause'