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 (3883,44854,44837,17848,4686,44863,17771,45561,45346,44766,44878,17335,44745,17492,18648,45286,17657,5993,14622,18427,17755,18353,44768,17703,22509,17092,5259,18900,44855,28313,17601,4765,44765,44685,5410,45177,45043,9341,24441,18894,13425,44531,18446,44875,18719,44764,17278,45516,28530,44689,44845,44894,44669,17981,18237,44767,17527,45517,44640,6782,18430,17237,37057,44868,44762,13988,45051,31354,44867,17556)
Unknown column 'np.person' in 'where clause'