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 (44845,18794,18894,45229,44858,13,44894,45286,17601,44739,18648,17703,44711,45515,17981,24411,8753,24438,44640,44863,44848,19078,45277,37267,18900,18572,18652,18042,18427,44878,17657,45518,44854,44764,5993,45042,18650,9341,45561,18172,45346,28530,44855,44875,10402,19057,17351,13425,18688,24441,3,17771,17756,44689,16935,44861,17009,44685,6609,14402,18286,36472,18279,44865,30963,22509,16885,17835,45180,6862)
Unknown column 'np.person' in 'where clause'