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 (18237,43800,44687,44640,44669,44858,13988,36472,24441,14622,44853,9341,45262,44878,44867,44685,37057,45346,16885,45180,5410,44739,17237,18650,17771,24411,16935,17492,28313,3,45072,44863,37267,17009,30963,5993,45567,18894,28530,45286,44671,18185,44674,18648,45042,44766,45518,17755,18688,6862,17278,44848,22509,13425,44837,18794,45277,18446,18427,44855,3883,18172,17835,18301,18286,6875,44764,44884,18900,17092)
Unknown column 'np.person' in 'where clause'