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 (45517,5259,17848,45042,24412,17703,18427,18279,30135,13,44849,45043,18652,14622,44836,44671,14402,44854,13425,37057,17527,28313,44687,16885,4686,44875,44768,44870,18446,44739,45262,44848,19078,5388,6609,44745,17237,18688,45286,44764,45518,44856,44775,13922,30963,17009,34194,45567,30986,17492,18301,17657,18572,17756,44855,24411,18353,5410,17601,18172,6875,44894,44837,28530,18996,44685,17771,17835,44711,45180)
Unknown column 'np.person' in 'where clause'