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 (17009,4765,6782,17904,17351,44765,44853,13,44851,6862,10402,44861,19057,5388,18286,18042,44854,17835,45561,19078,24441,13922,14402,44878,9341,18353,18794,44894,5259,44836,22509,44671,44868,24412,45072,45517,36472,30986,17092,16885,14622,18996,17527,31354,44848,24411,18172,45516,18900,28530,45515,13425,18237,44858,18279,44764,44674,45042,44855,17981,18446,17601,44837,17703,45518,18688,17756,18185,44835,5410)
Unknown column 'np.person' in 'where clause'