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 (34194,17981,44849,17278,44689,18042,10402,18353,5410,45262,44894,17904,14402,44851,44869,13425,44870,17755,45517,6609,6862,18981,18900,45286,19078,18894,44685,17848,17351,17601,19057,5388,44863,45567,44687,17756,44853,17237,18652,30963,44531,44739,44873,17527,44848,24441,3,5259,44858,45518,17835,44640,44845,4686,18185,24412,44671,3883,44745,44878,18572,44836,13988,37267,44866,24411,44762,6875,30135,45277)
Unknown column 'np.person' in 'where clause'