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 (5993,45180,24441,44674,13988,45516,45517,44765,37267,44848,18650,13425,18279,28313,44875,18353,17556,44836,19078,6862,18652,36472,13922,18900,44861,45051,22509,44845,18042,18237,44531,17981,17237,18172,44865,14622,44685,45043,18185,43800,5388,44835,10402,17703,44766,44873,32454,44894,44849,17848,18301,44764,44837,17009,44855,17771,24412,18996,3883,17601,45567,17657,30963,18794,45286,44851,45561,24411,45518,39676)
Unknown column 'np.person' in 'where clause'