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 (5388,18719,28313,44858,44764,17703,18286,45229,44835,44875,3,17835,17114,44689,45042,14622,44767,3883,18996,45262,18172,17556,44711,44685,44868,45051,16935,44884,19057,28530,44845,13988,44765,13922,22509,17527,45277,17848,44687,44856,17904,18981,37267,45421,17601,18650,45043,44854,18301,45516,17839,5410,45518,39676,44836,44848,18446,43800,4686,30135,44775,18427,45346,17092,37057,4765,18430,13,18042,6875)
Unknown column 'np.person' in 'where clause'