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 (18042,44775,19057,5410,44854,18353,17756,44853,44855,45286,45421,6862,44851,44836,17237,44868,44768,44669,18237,45051,9341,44845,18286,44745,19078,14622,44766,6609,17335,44856,44685,18572,16885,4686,5259,34194,5388,45515,17839,17351,31354,5993,17848,17556,13922,17601,44687,44894,4765,18900,18430,28530,43800,32454,3,45346,30135,45517,44873,18446,18688,44837,18279,17278,18894,6875,36472,44866,30986,18794)
Unknown column 'np.person' in 'where clause'