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 (44739,17904,18996,18981,44687,8753,18427,45177,44863,17835,18719,28313,44766,6875,45180,18172,9341,17092,44848,18650,13922,30135,16885,19057,17114,18430,44767,44868,24412,45286,45277,3,45262,44851,44837,6862,45346,18894,5259,24411,44884,18237,44856,45072,28530,14622,45518,18794,44845,17771,17839,44865,24441,4765,18688,45561,44745,45229,17755,44866,44854,16935,18301,5388,44853,44858,31354,44689,44836,44640)
Unknown column 'np.person' in 'where clause'