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 (45042,17601,18237,44875,14622,17492,44858,18648,45180,45561,18894,44669,43800,13988,18279,17835,17703,19057,37057,44854,18719,17278,13425,44845,18652,44863,44531,44867,44674,4686,17556,17527,30963,18446,5993,13,44837,18042,10402,44767,9341,34194,17657,18430,31354,16935,17237,22509,30986,44861,44870,17981,17092,17755,5410,6782,4765,44765,44764,17351,44868,30135,6609,45177,45286,18794,44873,45516,17848,44689)
Unknown column 'np.person' in 'where clause'