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 (45515,17657,44869,5993,18572,44765,3,17009,45561,44870,14622,44768,13425,30135,30963,44849,24411,44873,44689,44868,17703,3883,17981,44640,44855,17904,17556,17278,13,17848,6875,44766,18648,37057,17527,5410,44674,18353,17492,45042,45177,45516,44739,18301,44863,44845,17114,18279,17756,9341,45051,14402,31354,44854,13922,6862,28530,44764,45421,18900,30986,5388,34194,45518,37267,17601,18446,16885,44669,19057)
Unknown column 'np.person' in 'where clause'