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 (18279,44849,17492,44531,44845,17771,24441,17839,18042,45072,44873,18648,18185,17114,44867,44854,18172,45262,44671,14622,24438,17351,45517,18900,17009,44739,28313,44848,44835,13,30963,36472,44687,17835,24411,28530,45042,31354,18353,43800,24412,30135,44863,18237,18794,18301,18719,45277,3883,17278,4686,45567,44745,6609,18996,45421,13425,6862,18286,18981,45177,16935,45346,18427,34194,45286,44837,45180,18572,44764)
Unknown column 'np.person' in 'where clause'