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 (3,39676,5993,30135,17335,44766,44894,5259,14622,37267,45262,44669,45229,18894,45518,44674,18572,6862,44858,17492,18286,6782,8753,17755,44878,17351,18353,24438,18430,44768,17848,13922,44764,18279,17092,17601,17527,16885,17703,45421,18900,44873,16935,17904,44531,19078,18237,44856,17278,44745,24411,44687,44685,24441,45286,45277,44866,44869,45517,44854,44868,22509,32454,17835,18981,44640,6875,44762,10402,18688)
Unknown column 'np.person' in 'where clause'