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 (45286,28530,5388,44866,44858,44849,45229,44851,44837,18286,44869,28313,44775,31354,13922,5993,44855,45043,44711,44689,44861,44766,44768,18185,30135,17981,44669,45561,44835,17601,18996,37057,44845,44863,34194,16885,44856,18652,5259,44867,17848,44873,44745,13425,24411,39676,9341,16935,8753,44762,44894,14402,44764,44868,32454,45421,44640,44739,18650,13988,45346,6609,18900,19057,18981,45177,4765,18894,45516,19078)
Unknown column 'np.person' in 'where clause'