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 (18900,44687,5388,24411,16885,17527,45517,6782,44849,17009,44640,17351,44775,4686,44873,9341,17601,18427,45518,5259,44711,39676,14402,18237,18794,17092,16935,45051,44884,37057,17703,6875,18286,18652,45177,17237,36472,43800,45516,44762,44865,13922,44848,17492,45346,45515,45421,44669,37267,17771,17114,17335,44855,30963,44867,44836,14622,18042,44835,5993,18172,18996,44685,44854,44745,44863,45072,17839,45229,44765)
Unknown column 'np.person' in 'where clause'