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 (17839,17848,8753,44848,17835,18900,24441,18279,44745,44765,44854,17351,6609,30135,17601,6782,44873,10402,17703,44687,5388,17278,19057,44875,18237,45042,44669,44870,24438,43800,17771,44689,44739,44768,18286,17904,44685,44868,5259,45180,18688,22509,44775,18042,13,34194,45286,44835,44762,24412,45567,17756,13922,17492,44674,18446,6862,45421,18572,37057,16885,45051,18648,18301,45516,6875,5410,30986,5993,18652)
Unknown column 'np.person' in 'where clause'