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 (18042,45515,16935,18353,37267,5388,3,45286,43800,44835,6862,44861,28530,3883,45180,44765,10402,44894,44640,17601,45043,44531,45042,17839,44766,44884,6782,18794,44863,44869,24412,32454,44669,45346,17755,44848,44836,44858,6609,44866,30135,14402,5259,37057,44745,34194,18279,44868,24438,18894,14622,28313,18688,44671,45262,45421,44854,16885,4686,17703,44764,8753,44878,44851,13922,30986,13425,18648,44875,44855)
Unknown column 'np.person' in 'where clause'