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 (4765,17657,45229,8753,45177,44764,43800,44873,17114,18648,44687,17771,17904,14402,45346,44762,6782,44861,17492,18427,45516,17351,44766,18794,44865,18446,16885,18894,3883,45561,45421,6875,44856,44669,44875,45567,17601,16935,45180,5410,17556,44869,30135,44745,37057,44863,17278,30963,44671,24411,9341,44855,44854,45518,18430,18719,44767,18652,18353,32454,44837,18301,44531,18279,44894,31354,17981,17237,17335,18900)
Unknown column 'np.person' in 'where clause'