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 (19078,18279,43800,44853,18353,45286,44775,45277,17848,44671,44851,18719,44640,44894,5259,6609,18301,19057,45042,18172,13922,17657,45515,18650,18572,45262,18427,44849,44869,44764,5410,18286,44531,44836,45051,8753,16885,44845,22509,44768,28530,31354,36472,44766,44837,44767,34194,44866,4686,44863,45567,44865,24412,18894,18042,13425,44674,45517,16935,44685,45180,37267,44858,44873,18237,18446,44861,17755,17092,44689)
Unknown column 'np.person' in 'where clause'