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 (17351,44873,45042,28530,17904,18042,44837,13922,45516,45346,44894,44745,45286,43800,9341,44884,45277,44845,44531,44687,31354,18353,44671,37267,18794,17703,4765,17237,44870,44669,17092,17835,18652,44762,16935,44851,45421,18301,44739,44861,17492,18900,18719,3883,18894,17771,18237,45229,17335,18446,44855,17278,13,18185,44689,44836,17601,6862,19057,13988,17009,17839,19078,45051,45262,24441,5259,13425,18572,44865)
Unknown column 'np.person' in 'where clause'