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 (14402,45518,17839,18572,3,17756,16935,44848,5259,17601,10402,44764,44640,44870,44531,45516,13988,18648,17335,44835,44867,18286,44861,18900,45043,32454,44775,44765,18652,18981,18353,31354,18042,17657,44767,13425,24438,28530,37267,3883,6609,44884,45072,5410,8753,17492,19078,6782,18894,44873,34194,44685,44863,44745,44739,13922,44851,4765,44856,44762,19057,44854,17237,24411,44858,44855,17848,17351,39676,45286)
Unknown column 'np.person' in 'where clause'