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 (37267,18894,43800,45346,44873,44851,30135,44884,17756,36472,18650,18648,44671,44745,44845,45072,17092,44762,16935,14402,5410,44674,17492,44767,17114,45286,44855,44531,18446,44870,18172,24438,44739,4765,44848,13988,13922,44835,44640,28313,18981,18237,31354,44894,44853,34194,18719,32454,17351,44711,18286,17657,44768,44836,18042,3,6862,18353,18279,44854,17755,44849,16885,17904,45229,18572,28530,44689,44875,17601)
Unknown column 'np.person' in 'where clause'