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 (16935,18427,44674,44671,43800,30986,4765,44768,44835,22509,18042,44765,18286,18279,18185,44689,44836,13988,45346,10402,18648,28313,17278,44894,44762,17756,17009,44745,44866,44856,19057,24441,17335,36472,17237,44767,5993,5259,44766,17657,18981,24411,17492,5388,44848,44685,13425,14622,17351,6782,24412,17556,45229,17771,6609,16885,44775,44858,44875,13,17527,14402,45042,44669,30963,17904,18353,45517,44863,44854)
Unknown column 'np.person' in 'where clause'