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 (6609,45561,44531,44884,17835,43800,18981,44875,17755,18237,34194,17527,17009,17335,45286,5259,44835,17657,28530,18430,18446,18648,44867,44671,44669,44762,18172,17351,17556,10402,30963,8753,18042,18279,17848,45517,28313,44848,13425,45518,22509,32454,30986,44878,14622,13922,45346,17601,45262,18794,17092,4686,18894,44767,3,5388,17114,44768,16935,45515,19078,44689,36472,18286,24441,44865,44640,17703,18301,4765)
Unknown column 'np.person' in 'where clause'