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 (24438,44711,44875,44835,45051,24412,6875,5993,45346,17114,18446,24411,16885,5259,18894,28313,18286,44884,44671,17755,17848,5410,17237,5388,44531,45561,18237,44767,44845,44849,32454,44762,13988,44854,45277,45262,45229,44685,44768,17839,17904,17756,44640,44766,17835,13,17092,17771,17657,45043,24441,45518,44765,44745,45286,22509,14622,18794,44775,44848,6782,44836,30963,18652,44861,44739,16935,18719,17335,44853)
Unknown column 'np.person' in 'where clause'