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 (17835,44640,44766,6782,18279,17755,44865,18996,6875,44837,17839,44853,24412,18185,4765,8753,45177,18572,45346,14622,44870,44873,19078,44875,45561,18286,24438,16935,44855,17278,44685,17771,17527,34194,3883,17092,44762,45051,44739,44854,39676,13922,22509,45421,44878,19057,18652,6609,17981,18719,45515,18900,5259,5993,17237,45072,13425,28530,44775,45516,44835,44531,44894,44768,17657,18353,18301,17601,18648,44861)
Unknown column 'np.person' in 'where clause'