Hi carin,
I just encountered a similar issue:
When trying to load an object-form (edit) in joomla backend I got an error message like "Could not find column COSTA_RICA". Select: "SELECT id_region from jos_regions where name_country=COSTA_RICA". --> Issue here: Quotation marks were missing.
I added escaped quotation marks in file "select_dynamic_cascade.php line 181:
Before: 'SELECT '.$opt_parent.$opt_table.' WHERE '.$opt_value.'='.$value.''.$opt_and;
After: 'SELECT '.$opt_parent.$opt_table.' WHERE '.$opt_value.'=\''.$value.'\''.$opt_and;
I guess your issue lies in line 535. The quotation marks seem to be missing here as well (between the brackets).
Hope this helps:
@Seblod-Team: For the benefit of all users of the plugin: Could you please add these two fixes and provide a new version?
Thank you!
sUrfa