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 (6862,24438,44835,17351,18996,45051,17835,14402,17556,45072,18446,44768,18237,18430,44836,45346,18719,45561,44863,16885,44685,6609,4765,17981,44762,18648,6782,44764,18900,44884,18353,44849,45421,17755,45567,44837,45042,17756,17278,44689,45177,37057,44687,17114,44856,3883,44739,44861,19057,3,17492,32454,45518,4686,44868,14622,31354,22509,18572,17601,30986,13988,18042,19078,44875,18794,18172,45516,44858,16935)
Unknown column 'np.person' in 'where clause'