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 (17657,14402,44845,5388,17601,45561,17703,18894,5259,24438,44711,44689,24412,18794,16935,18572,45072,18650,13988,44685,18900,44894,19078,18688,44861,37057,17278,30963,30135,31354,18427,45042,17335,45516,44687,44739,24441,45567,5993,44671,44640,17556,24411,44865,45346,45286,44745,13,18237,44762,17756,44866,18301,44854,45515,45051,9341,10402,18652,45277,44836,28313,44884,18430,17835,13425,3,45518,45262,44856)
Unknown column 'np.person' in 'where clause'