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 (45043,44884,45277,13922,18650,18172,44863,16935,44861,18981,4765,44865,31354,30986,18286,18648,45042,44767,30963,17703,44669,30135,44835,45072,44873,16885,44845,5259,24412,17351,44762,44711,13425,5993,44836,18794,44687,45229,18237,44868,5388,6782,44689,24438,44855,9341,44854,17527,44775,22509,39676,17335,6609,44674,18042,45561,44745,6875,24441,17556,45346,44848,18996,4686,28313,45516,18719,44766,19078,44765)
Unknown column 'np.person' in 'where clause'