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 (19078,18650,45561,18286,18446,30963,44858,18353,17771,44853,44863,18185,10402,17755,18894,18572,18301,28313,22509,44745,44674,30986,13988,44854,32454,36472,17335,17848,44531,16885,18900,44865,30135,44836,5410,34194,17601,44866,44640,17009,44689,18427,17835,44739,4686,45286,6609,45277,44849,43800,17492,44669,18279,44894,37267,14622,37057,44775,18996,9341,44868,18719,44861,44851,18430,17237,18794,44687,17756,44873)
Unknown column 'np.person' in 'where clause'