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 (19078,44836,44640,45561,44867,13,18279,17092,17848,44689,44856,44685,24438,44669,6875,18650,18353,17771,18430,18237,44762,44861,8753,44711,17657,16935,44745,19057,45262,45515,34194,13922,6609,16885,45072,13988,17351,6862,44873,44865,3,17835,44870,44767,18286,17009,22509,3883,17114,43800,44875,17839,28530,45177,45346,18301,45042,18572,18648,45277,9341,5388,18652,17278,44866,45421,17556,17755,45517,44674)
Unknown column 'np.person' in 'where clause'