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 (17114,18286,45051,44866,44845,18237,44894,44849,18650,5993,18172,34194,43800,44861,44765,18794,44848,30135,45277,17839,6875,17335,44739,18900,19078,44867,17835,44768,44884,18719,17556,3883,5388,18185,45229,30963,24441,18652,45262,24412,44836,3,17351,37057,44687,45518,18688,44869,44674,44851,16885,18353,44865,13425,45286,44689,17492,44853,13922,44671,5259,18648,9341,14622,39676,17848,18279,44875,44531,44685)
Unknown column 'np.person' in 'where clause'