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 (24412,32454,18237,17835,44687,44853,44685,44848,37267,24438,14622,44884,4686,44764,17657,45517,45421,17335,45051,8753,31354,44865,6782,45043,17981,45277,13425,24411,17839,34194,44835,17601,39676,45516,44768,17351,30135,18719,44866,18042,5259,17771,30963,17556,44845,13922,18648,16885,9341,5993,44762,17848,3,3883,17237,44878,44836,18650,44739,17527,44855,28530,44858,44671,6862,44669,13,6875,44851,18301)
Unknown column 'np.person' in 'where clause'