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 (17657,44868,44894,44878,6609,17904,44775,17114,44767,19078,37057,17237,18427,44762,44531,44669,44764,17335,44865,44671,16935,19057,44766,18237,44687,18794,44845,4765,17527,18572,18996,5259,44640,14402,18650,45277,32454,28530,18172,44861,14622,43800,31354,44873,44765,13922,45180,17835,45516,45561,28313,44884,17771,36472,18185,13988,44674,18446,8753,37267,44858,44689,45346,9341,6782,3,45421,17981,44855,45043)
Unknown column 'np.person' in 'where clause'