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,45177,13922,44870,44669,17981,17527,13425,17492,17904,44869,44764,44866,44762,17756,32454,44671,45515,44765,45561,44836,18794,44878,5259,45286,17278,44894,18650,28313,34194,44685,45051,4765,45072,44689,44873,17009,6782,18353,14622,8753,45516,19057,44861,17703,24438,44853,16935,13988,18279,24441,45518,44868,18427,44854,44711,24412,18688,44687,44849,18446,44848,44640,44766,44865,43800,44856,44851,44775,18286)
Unknown column 'np.person' in 'where clause'