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 (17771,18237,44863,24411,44861,44873,44865,17835,18286,44767,17601,32454,44858,44870,5388,18894,24438,44836,45517,44835,18430,13425,44884,44768,8753,45277,22509,17335,44711,17756,6875,44531,44868,18572,44867,17114,14402,39676,44894,44855,13922,6862,44674,37267,44848,44851,4686,45516,44866,18446,44739,4765,9341,44853,18688,45229,44875,45180,30135,44762,44869,45286,14622,45421,45051,28530,17009,17351,18996,24412)
Unknown column 'np.person' in 'where clause'