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 (45262,13922,44835,36472,43800,17114,6862,44765,44849,18430,44873,9341,18172,4686,44687,18237,44685,16885,17657,44764,18719,17981,45043,18688,8753,17335,22509,6609,44762,5410,44775,18427,18794,13425,30963,16935,45516,44848,44853,45229,18042,45072,5993,13988,18996,17755,44858,45286,17092,44875,44856,39676,5388,44669,6875,4765,17237,45177,37057,24411,44863,44867,17756,44837,17703,17556,24438,18446,6782,28313)
Unknown column 'np.person' in 'where clause'