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 (44867,30135,17703,18042,18794,17835,44689,24412,45277,45517,44869,17278,39676,18427,44775,17335,18446,44836,18650,17756,5388,44674,28313,45042,13988,18279,5993,17771,44837,44863,44868,45516,18996,45561,44856,30963,31354,17351,44870,18237,18719,17092,44766,45177,44866,18572,19057,44884,44853,10402,18894,45072,17492,22509,16935,30986,44873,45518,44861,44687,44762,44848,18301,18172,45346,19078,17657,18688,6609,34194)
Unknown column 'np.person' in 'where clause'