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 (4686,4765,19078,44863,44855,17527,44765,45517,44687,45180,36472,17114,24438,18648,17237,44861,18172,44849,44531,13922,31354,34194,28313,44869,17278,32454,18719,45262,18900,17492,17601,45516,3883,8753,17756,44866,45051,44674,45346,18353,37267,44858,44764,18446,18794,44767,18688,44845,18042,5388,18650,44851,16885,18185,14622,18237,17755,19057,45043,45042,13425,44766,17835,44739,24412,44867,30135,18301,17848,44884)
Unknown column 'np.person' in 'where clause'