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 (18279,32454,30986,18650,45516,44674,17835,17657,30135,5993,45180,44671,18172,17114,44845,18427,45277,18572,24411,6609,44875,18900,18981,28313,45072,44878,5388,18237,6862,24438,18894,16935,5259,18185,34194,44775,28530,45421,44687,45043,18648,17756,45518,44765,44873,37057,43800,18996,18688,44854,44531,9341,17556,44640,36472,44855,18446,6875,45517,24412,6782,4765,44669,44848,44768,17009,17278,45561,44863,17351)
Unknown column 'np.person' in 'where clause'