13.01.2014, 10:03
Not sure how many times I've said it the past few weeks, but if you're using R7 or higher then you MUST use callbacks. Though in your case you could probably solve it with a subquery;
PHP код:
UPDATE users SET car=(SELECT MAX(`id`) FROM `vehicles`) WHERE name='%s'