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 (44711,17755,45072,34194,18172,24412,17657,44866,45517,30963,45229,39676,44765,28530,18427,17848,6609,18688,17527,17703,44875,18286,45042,44870,45277,17904,5388,19057,18652,44865,43800,45518,5410,18572,44687,3883,18981,18446,18237,17601,16885,9341,17756,44531,44671,10402,44858,22509,13988,45180,19078,4686,44745,6862,44845,45177,28313,4765,13425,44739,17092,17556,17492,14622,24441,44689,13922,17114,44869,31354)
Unknown column 'np.person' in 'where clause'