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 (19057,10402,44739,44867,44894,18894,5410,18572,17771,44853,44856,9341,43800,6875,45277,31354,45042,17114,13,45051,44836,17335,44865,44764,16935,44689,18652,14622,17904,17492,5993,44849,13988,44869,30135,5259,45421,45180,44674,3883,17835,44762,44868,17756,44873,28530,44640,45072,18688,18430,37267,18172,45561,45286,5388,24412,44835,18981,18279,44766,14402,44837,45518,6782,18719,44845,8753,44687,45177,17527)
Unknown column 'np.person' in 'where clause'