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,16935,13,13425,5410,18301,44855,3883,18996,22509,45177,45346,17601,6875,45051,17351,17755,37267,44853,45517,18648,45277,5993,44868,44766,43800,30963,44856,18042,24411,10402,5259,18572,45180,34194,45515,18650,44640,18652,6862,45421,44674,44870,14622,44745,44775,44894,18900,44685,45072,44711,45516,28313,44768,13922,24441,17237,36472,44873,18446,17657,44835,18427,44669,31354,45286,19057,44837,44848,44845)
Unknown column 'np.person' in 'where clause'