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 (17009,44767,19078,18652,44878,34194,44836,44855,18286,44640,13,36472,4765,17114,45043,18648,44711,45515,18894,5993,19057,18650,18446,17703,39676,13922,44762,44863,44845,45072,17278,24438,18172,10402,18572,28530,44671,14622,18042,43800,44531,6875,37057,28313,16935,17657,44689,44745,45567,44865,30986,44835,17981,44884,13988,6609,45518,17756,17335,44669,17492,44851,45561,44848,30963,44775,5388,3883,3,18900)
Unknown column 'np.person' in 'where clause'