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 (4765,18652,17114,16935,18042,18572,32454,45180,3,6609,45042,44775,17278,37267,44768,18427,16885,17237,44674,17009,5410,18286,45072,13922,3883,44835,18719,45346,44685,44863,31354,17755,44671,5388,17351,28313,17092,17756,43800,37057,44837,45051,44866,10402,17835,44836,18650,44878,18301,18172,44762,44884,44869,30963,18894,24412,19078,44531,45229,17771,17601,17527,14402,44873,4686,44640,45286,45518,45567,6862)
Unknown column 'np.person' in 'where clause'