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 (18237,18353,45277,18981,18430,44866,45051,17492,43800,44873,37267,44837,17771,18279,44762,44894,44849,16885,44766,44739,10402,5410,17601,17839,14402,16935,18446,44669,3,37057,44764,45515,18172,44851,44768,44853,6875,44856,9341,17981,17278,18794,44745,44835,45516,44867,44775,31354,45346,13988,6609,18996,17556,44640,18650,17848,44687,44865,17527,17237,18652,24441,45229,13425,44870,18572,18042,45518,44878,5993)
Unknown column 'np.person' in 'where clause'