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 (17092,44766,5410,17657,44640,18446,17601,17009,45051,18652,45516,18572,44858,13988,45421,39676,13922,18648,44856,44855,45043,18427,19078,44762,18996,44845,44689,18042,30986,18301,17114,44866,14622,44836,9341,44851,44875,17848,30135,28530,44865,18286,44863,44767,17703,44674,24412,24411,18172,14402,44854,18430,6862,24441,44870,44685,44687,37267,17351,18981,45518,44765,44868,45567,10402,17492,16885,18279,44869,44894)
Unknown column 'np.person' in 'where clause'