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 (13,5259,5388,45516,39676,44851,8753,28313,18688,44689,44855,45518,16885,3883,18042,17835,44835,44866,18572,17904,44745,4765,17601,17527,45561,17839,28530,6609,44894,44766,6875,18353,45262,44856,44687,44868,44739,44858,45072,45346,18301,44768,18652,5993,45421,31354,44640,18900,14622,44863,44671,17771,43800,17657,17237,45051,13425,6862,44849,17848,45515,45043,45286,44873,18279,44884,24441,44865,45229,34194)
Unknown column 'np.person' in 'where clause'