Lisätty mysql_num_rows-ehto.
Merge branch 'master' into oskari/extranet_eivaraa