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 (34194,30986,24438,5388,22509,30135,18794,44848,17771,45567,24411,18042,44870,17703,18427,44687,17114,45561,18648,17237,45262,44837,44867,18688,44858,44869,39676,44640,44894,44853,45286,9341,17601,44865,17981,44685,3,45072,6862,17839,17278,18237,44849,24412,4686,44689,18719,31354,44884,17335,5993,17527,13988,43800,17848,45515,44861,44855,18650,45277,6609,13425,44739,16935,44745,37057,17492,44836,45229,6875)
Unknown column 'np.person' in 'where clause'