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 (44845,18279,45561,39676,44867,16885,45517,44894,18572,18427,45515,8753,13988,44866,17278,18286,44878,45346,44671,5259,16935,45518,17848,18652,17981,13922,44739,44764,24441,37057,44836,6609,31354,44762,18042,17771,44765,19057,18648,5388,18981,17009,4686,14622,37267,17335,45262,28530,17092,44711,30135,13,3,17492,28313,6862,18894,6875,17755,44745,18900,32454,19078,44875,45567,17556,17904,17527,44689,5993)
Unknown column 'np.person' in 'where clause'