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 (4686,14622,18794,17114,3,43800,18719,17351,44894,44766,44685,17771,5259,13425,18650,18042,18279,45051,44837,45177,17835,44878,13988,19057,24412,44873,31354,45516,17601,44689,45517,5388,17527,44854,30986,6782,28313,44849,44835,18286,18427,44836,45229,37057,44775,17703,17839,14402,18900,44767,9341,18353,34194,44531,17278,45286,37267,17335,44858,5410,44739,44745,18648,44855,8753,30963,44711,17657,6875,44875)
Unknown column 'np.person' in 'where clause'