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 (17009,24411,45180,18172,6862,44875,44855,17703,18286,17657,44766,6875,17835,18648,44674,44867,24441,44531,44878,45561,44764,28530,44745,4686,17278,17601,44767,44739,44640,18301,44836,13425,30986,44837,44868,18652,43800,34194,45262,17092,17114,30963,8753,17556,44894,45072,18446,18794,45229,9341,45051,45515,18996,44856,13988,44865,45177,18237,44848,18650,16935,44866,18279,30135,18042,17771,17492,3883,28313,18900)
Unknown column 'np.person' in 'where clause'