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 (44775,16935,44674,44878,6862,17904,45180,44768,44875,45346,44854,28530,44687,44835,17756,44868,5388,5410,18446,36472,44762,19078,18237,24441,44836,13425,18719,45051,14622,44884,6609,18427,17114,17835,44858,18652,34194,37267,4686,16885,24412,18996,45515,18353,5259,18648,45561,44866,44861,17981,44848,44685,44739,44870,9341,18301,37057,17839,44766,44837,17657,45262,17771,44764,45072,18572,44865,45518,44863,31354)
Unknown column 'np.person' in 'where clause'