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,44856,45177,44869,44739,44531,16885,18652,24412,18894,16935,44674,13425,44762,18996,45515,17335,44861,3883,45180,44687,4765,34194,30135,44866,3,44835,44836,17237,5259,5993,45051,19078,6782,37057,13988,17848,17657,44855,44894,17703,18042,44640,17755,45516,28313,13,17114,44685,18900,45262,45517,18185,17556,44765,44764,44865,44863,44775,44870,17756,44669,19057,43800,45561,24411,44767,17839,18301,6862)
Unknown column 'np.person' in 'where clause'