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 (5259,18996,19078,44884,16885,13,4765,17237,18172,10402,17848,45180,44878,17527,30963,17092,18572,18237,5388,8753,43800,17492,44837,32454,17556,17601,3,16935,18894,30986,13922,17351,17771,18648,44870,17114,44856,45421,45518,44836,9341,44640,45515,37267,6609,18279,45516,24411,18794,45517,44868,44858,44687,18900,44845,5993,44863,17981,45561,44689,44671,44861,28530,17839,18981,45072,6875,18688,44711,45043)
Unknown column 'np.person' in 'where clause'