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 (18900,44745,28313,44854,3,6782,45229,18185,44848,32454,45516,13,17835,45042,18279,18648,31354,43800,44858,45072,5388,16935,45515,17839,24412,45286,17756,16885,18650,45518,44894,17527,17848,17278,13425,44739,17601,5993,3883,44640,44855,6609,44866,13922,44845,44861,44767,44836,18286,44775,17237,18427,18430,14622,44865,44851,18572,44768,44849,14402,45277,44711,18237,13988,19057,36472,5259,44674,17755,44863)
Unknown column 'np.person' in 'where clause'