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 (45072,44863,17904,44671,18301,45051,14622,44768,17835,3883,44766,31354,44739,17756,6875,17601,30963,17755,4765,16935,44866,44685,43800,10402,5388,45518,19057,45286,17009,18042,45042,45567,17351,17981,17556,17237,18981,18446,13922,17492,44835,24411,18652,18996,44873,4686,6862,45262,19078,44869,13425,18894,44775,44836,44861,44854,28313,24441,18237,30986,45561,30135,44845,18572,18900,45515,3,45043,5259,44849)
Unknown column 'np.person' in 'where clause'