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 (4765,45229,13,17527,14622,44867,44875,17756,44853,16885,39676,18446,17009,17556,17657,18353,18279,18301,44861,44858,8753,4686,16935,44848,44745,44851,17839,22509,9341,45177,17904,44869,44689,44845,44849,44765,18042,18900,28530,3,45517,45262,6875,24412,44762,18237,37057,17237,18185,44873,44835,18688,24438,14402,44766,45042,37267,44687,44711,30135,18172,18650,17835,18719,45567,32454,18981,5410,44866,17848)
Unknown column 'np.person' in 'where clause'