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 (31354,44739,3,13922,13988,18286,13,44849,44873,17839,44836,17756,44687,4765,45346,44884,44837,45561,37057,17492,44858,18900,5410,24412,4686,30986,39676,18446,45421,18237,13425,44869,43800,44745,18353,8753,44765,45277,6609,18996,44861,17981,44766,44768,3883,17904,44531,44856,24411,34194,44865,45043,6862,44685,45180,18172,18894,44689,44875,18279,18572,44866,45567,45286,32454,17848,44640,17009,44851,18301)
Unknown column 'np.person' in 'where clause'