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 (17703,18172,6875,45421,18652,44870,24441,17835,18572,28530,18688,37267,44837,4765,44855,45277,18353,45516,16935,17657,44689,44894,44878,44767,8753,36472,45262,44863,44739,44858,34194,44685,18900,17756,44775,18042,45515,17237,22509,44669,44867,37057,44866,44848,5259,13922,44845,18446,17771,24412,44766,45180,17278,30135,17492,4686,17755,6609,18719,45286,13425,44853,45229,44865,13,17839,45051,14402,5388,45517)
Unknown column 'np.person' in 'where clause'