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 (6782,44689,44865,18430,17657,3,45515,44768,45516,44687,44875,17335,44775,5993,37057,6609,44837,44711,44765,30135,18794,45177,45518,17009,44848,13988,45421,17278,45567,17351,18981,17839,44739,45517,6862,18172,36472,44866,18353,24411,44873,18652,17771,18650,45277,44856,24438,13,31354,19057,44849,24441,18894,44835,44640,30986,44855,43800,28530,44869,45043,44894,17527,10402,44671,16935,14622,18648,16885,17237)
Unknown column 'np.person' in 'where clause'