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 (18042,44856,44878,44762,3883,18427,44867,45561,6609,17755,17756,18237,44689,44849,17527,44837,18572,44861,45515,44674,44768,18688,45072,45286,44853,3,43800,17835,17657,5259,22509,18894,18286,6782,19057,45517,13988,44875,44835,5388,17981,44775,36472,14402,17351,18172,44851,4765,6862,44745,45518,30135,44671,17237,17703,18981,17556,28313,44873,17601,18279,28530,17492,44865,44836,44866,39676,8753,45229,45567)
Unknown column 'np.person' in 'where clause'