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 (45286,45180,17601,44669,44858,44835,16885,44745,17703,44866,44766,18430,45421,17278,32454,17848,13,44869,44674,44845,44762,30135,45517,24411,45516,3,44865,44863,44767,45561,17351,34194,18794,24438,18279,44875,24441,31354,5259,19078,6875,18572,45262,18996,9341,37057,17771,44867,45072,14402,44671,36472,44853,44531,17335,8753,13922,18237,44878,22509,44894,44868,30963,4686,5388,44837,18652,17009,44640,17981)
Unknown column 'np.person' in 'where clause'