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 (18286,18572,5410,45561,44861,45229,44671,44674,45262,45518,17839,44766,44685,44836,18688,3883,34194,13988,44868,30135,44765,44669,5259,14402,44689,45043,44884,44835,37057,44855,28530,17114,45286,17904,18172,17848,18185,17237,22509,18237,18301,44853,16885,44869,45180,17335,44837,19057,37267,17601,44768,24412,17657,45567,44849,8753,18996,17278,18446,17556,3,44739,44640,44775,17492,30986,17527,44745,31354,44845)
Unknown column 'np.person' in 'where clause'