Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (6862,19078,30963,17527,18042,17556,30135,44762,4765,4686,13988,18981,17009,17092,44866,44669,44640,13425,14622,18650,18446,44764,44861,44865,13,45516,17657,17755,44894,28313,45072,18237,17771,44867,44856,17904,16935,18572,24438,44849,45421,45051,34194,45229,18301,44836,3883,45042,17848,17981,44711,44853,5993,22509,37267,3,45561,17835,18286,17237,45286,44739,14402,44766,44855,18996,24411,17492,36472,44835)
Unknown column 'np.person' in 'where clause'