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 (31354,44836,44894,8753,44863,22509,44835,45229,16885,19078,18286,44855,44856,45567,17703,44868,44745,18237,16935,17601,45518,44767,18427,17756,18446,18430,19057,18900,44685,32454,45051,17492,45177,45043,45421,44689,6782,18688,44845,17009,17092,18794,44671,17556,18279,17657,45515,24412,44884,18353,3883,18301,44674,37267,45286,44669,44875,44739,17114,14402,18042,18572,18981,44765,44837,13922,24438,44878,45042,30135)
Unknown column 'np.person' in 'where clause'