Thank you!
I changed the query and tested it with fixed values before directly against the database. It works as expected.
However, I still get the same error during ajax validation but as before on submit of the registration form.
It works fine even on submit of the form
without
Code:
AND m.`firstname` = '[firstname]'
AND m.`lastname` = '[lastname]'
Do you have any further idea? Firstname and lastname are both mandatory and both in sep. fields in the database.
Do you know if the validation and its result is logged somewhere?
Thanks.
Frank
EDIT: In debug mode in Joomla I could actually see the executed. sql statement.
It looks like
Code:
AND m.`firstname` = ''
AND m.`lastname` = ''
So it seems as the substitutions do not work on submit of the form.