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 (17527,17703,17278,17351,45177,45518,44836,18185,44837,45229,18427,44674,16935,18900,17601,19057,45286,13,44875,24438,24411,18172,17237,17981,17492,39676,14622,13425,5410,18042,44853,44865,4765,45567,17556,18996,44671,44894,17009,18237,8753,37057,45421,18794,44687,3883,10402,30963,31354,18648,44878,44856,5388,18279,18353,4686,45346,6875,44851,44848,44845,44858,45051,44689,44766,44869,18572,44884,44531,44765)
Unknown column 'np.person' in 'where clause'